vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Macros | Functions
laplace_distribution.hpp File Reference
#include <vsmc/rng/internal/common.hpp>
#include <vsmc/rng/u01_distribution.hpp>

Go to the source code of this file.

Classes

class  vsmc::LaplaceDistribution< RealType >
 Laplace distribution. More...
 
class  vsmc::LaplaceDistribution< RealType >::param_type
 

Namespaces

 vsmc
 
 vsmc::internal
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_LAPLACE_DISTRIBUTION_PARAM_CHECK(b)
 

Functions

template<typename RealType , typename RNGType >
void vsmc::laplace_distribution (RNGType &rng, std::size_t n, RealType *r, const typename LaplaceDistribution< RealType >::param_type &param)
 
template<typename RealType , typename RNGType >
void vsmc::laplace_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generating laplace random variates. More...
 
template<typename RealType >
bool vsmc::internal::laplace_distribution_check_param (RealType, RealType b)
 
template<std::size_t K, typename RealType , typename RNGType >
void vsmc::internal::laplace_distribution_impl (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 
template<typename RealType , typename RNGType >
void vsmc::rng_rand (RNGType &, LaplaceDistribution< RealType > &, std::size_t, RealType *)
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_RNG_LAPLACE_DISTRIBUTION_PARAM_CHECK (   b)
Value:
VSMC_RUNTIME_ASSERT((b > 0), "**LaplaceDistribution** CONSTRUCTED " \
"WITH INVALID SCALE PARAMETER VALUE")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:53

Definition at line 38 of file laplace_distribution.hpp.