vSMC
vSMC: Scalable Monte Carlo
Classes | Public Types | Public Member Functions | Friends | List of all members
vsmc::LaplaceDistribution< RealType > Class Template Reference

Laplace distribution. More...

#include <vsmc/rng/internal/common.hpp>

Classes

class  param_type
 

Public Types

using distribution_type = LaplaceDistribution< RealType >
 
using result_type = RealType
 

Public Member Functions

 LaplaceDistribution (result_type a=0, result_type b=1)
 
 LaplaceDistribution (const param_type &param)
 
result_type a () const
 
result_type b () const
 
result_type max () const
 
result_type min () const
 
template<typename RNGType >
result_type operator() (RNGType &rng)
 
template<typename RNGType >
result_type operator() (RNGType &rng, const param_type &param)
 
template<typename RNGType >
void operator() (RNGType &rng, std::size_t n, result_type *r)
 
template<typename RNGType >
void operator() (RNGType &rng, std::size_t n, result_type *r, const param_type &param)
 
void param (const param_type &param)
 
const param_typeparam () const
 
void pram (param_type &&param)
 
void reset ()
 

Friends

bool operator!= (const distribution_type &dist1, const distribution_type &dist2)
 
template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const distribution_type &dist)
 
bool operator== (const distribution_type &dist1, const distribution_type &dist2)
 
template<typename CharT , typename Traits >
std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &is, distribution_type &dist)
 

Detailed Description

template<typename RealType>
class vsmc::LaplaceDistribution< RealType >

Laplace distribution.

Definition at line 570 of file common.hpp.

Member Typedef Documentation

template<typename RealType >
using vsmc::LaplaceDistribution< RealType >::distribution_type = LaplaceDistribution<RealType>

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
using vsmc::LaplaceDistribution< RealType >::result_type = RealType

Definition at line 61 of file laplace_distribution.hpp.

Constructor & Destructor Documentation

template<typename RealType >
vsmc::LaplaceDistribution< RealType >::LaplaceDistribution ( result_type  a = 0,
result_type  b = 1 
)
inlineexplicit

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
vsmc::LaplaceDistribution< RealType >::LaplaceDistribution ( const param_type param)
inlineexplicit

Definition at line 61 of file laplace_distribution.hpp.

Member Function Documentation

template<typename RealType >
result_type vsmc::LaplaceDistribution< RealType >::a ( ) const
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
result_type vsmc::LaplaceDistribution< RealType >::b ( ) const
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
result_type vsmc::LaplaceDistribution< RealType >::max ( ) const
inline

Definition at line 69 of file laplace_distribution.hpp.

template<typename RealType >
result_type vsmc::LaplaceDistribution< RealType >::min ( ) const
inline

Definition at line 64 of file laplace_distribution.hpp.

template<typename RealType >
template<typename RNGType >
void vsmc::LaplaceDistribution< RealType >::operator() ( RNGType &  rng,
std::size_t  n,
result_type r 
)
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
template<typename RNGType >
void vsmc::LaplaceDistribution< RealType >::operator() ( RNGType &  rng,
std::size_t  n,
result_type r,
const param_type param 
)
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
template<typename RNGType >
result_type vsmc::LaplaceDistribution< RealType >::operator() ( RNGType &  rng,
const param_type param 
)
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
template<typename RNGType >
result_type vsmc::LaplaceDistribution< RealType >::operator() ( RNGType &  rng)
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
void vsmc::LaplaceDistribution< RealType >::param ( const param_type param)
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
const param_type& vsmc::LaplaceDistribution< RealType >::param ( ) const
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
void vsmc::LaplaceDistribution< RealType >::pram ( param_type &&  param)
inline

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
void vsmc::LaplaceDistribution< RealType >::reset ( )
inline

Definition at line 71 of file laplace_distribution.hpp.

Friends And Related Function Documentation

template<typename RealType >
bool operator!= ( const distribution_type dist1,
const distribution_type dist2 
)
friend

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
template<typename CharT , typename Traits >
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const distribution_type dist 
)
friend

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
bool operator== ( const distribution_type dist1,
const distribution_type dist2 
)
friend

Definition at line 61 of file laplace_distribution.hpp.

template<typename RealType >
template<typename CharT , typename Traits >
std::basic_istream<CharT, Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
distribution_type dist 
)
friend

Definition at line 61 of file laplace_distribution.hpp.