vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Macros
discrete_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::DiscreteDistribution< IntType >
 Draw a single sample given weights. More...
 
class  vsmc::DiscreteDistribution< IntType >::param_type
 

Namespaces

 vsmc
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_DISCRETE_DISTRIBUTION_POSITIVE(flag)
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_RNG_DISCRETE_DISTRIBUTION_POSITIVE (   flag)
Value:
(flag), "**DiscreteDistribution** WEIGHTS ARE NOT NON-NEGATIVE")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:53

Definition at line 38 of file discrete_distribution.hpp.