vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | List of all members
vsmc::Resample< internal::ResampleMultinomial > Class Template 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

template<>
class vsmc::Resample< internal::ResampleMultinomial >

Multinomial resampling.

Definition at line 49 of file multinomial.hpp.

Member Function Documentation

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

Definition at line 54 of file multinomial.hpp.