vSMC
vSMC: Scalable Monte Carlo
Namespaces | Functions
transform.hpp File Reference
#include <vsmc/resample/internal/common.hpp>

Go to the source code of this file.

Namespaces

 vsmc
 

Functions

template<typename IntType1 , typename IntType2 >
void vsmc::resample_trans_index_rep (std::size_t M, std::size_t N, const IntType1 *index, IntType2 *replication)
 Transform parent indices into replication numbers. More...
 
template<typename IntType1 , typename IntType2 >
void vsmc::resample_trans_rep_index (std::size_t M, std::size_t N, const IntType1 *replication, IntType2 *index)
 Transform replication numbers into parent indices. More...
 
template<typename IntType >
std::size_t vsmc::resample_trans_residual (std::size_t M, std::size_t N, const double *weight, double *resid, IntType *integ)
 Transform normalized weights to normalized residual and integrals, and return the number of remaining elements to be resampled. More...
 
template<typename IntType , typename U01SeqType >
void vsmc::resample_trans_u01_index (std::size_t M, std::size_t N, const double *weight, U01SeqType &&u01seq, IntType *index)
 Transform uniform [0, 1] sequence into parent indices. More...
 
template<typename IntType , typename U01SeqType >
void vsmc::resample_trans_u01_rep (std::size_t M, std::size_t N, const double *weight, U01SeqType &&u01seq, IntType *replication)
 Transform uniform [0, 1] sequence into replication numbers. More...