vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | List of all members
vsmc::ResampleMultinomial Class Reference

Multinomial resampling. More...

#include <vsmc/resample/multinomial.hpp>

Public Member Functions

template<typename IntType , typename RNGType >
void operator() (std::size_t M, std::size_t N, RNGType &rng, const double *weight, IntType *replication)
 

Detailed Description

Multinomial resampling.

Definition at line 43 of file multinomial.hpp.

Member Function Documentation

template<typename IntType , typename RNGType >
void vsmc::ResampleMultinomial::operator() ( std::size_t  M,
std::size_t  N,
RNGType &  rng,
const double *  weight,
IntType *  replication 
)
inline

Definition at line 47 of file multinomial.hpp.