vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Typedefs | Functions
weight.hpp File Reference
#include <vsmc/internal/common.hpp>
#include <vsmc/rng/discrete_distribution.hpp>

Go to the source code of this file.

Classes

class  vsmc::internal::HasWeightType< T >
 
class  vsmc::internal::HasWeightTypeImpl< T >
 
class  vsmc::internal::WeightTypeDispatch< T, bool >
 
class  vsmc::internal::WeightTypeDispatch< T, false >
 
class  vsmc::internal::WeightTypeDispatch< T, true >
 
class  vsmc::Weight
 Weight class. More...
 
class  vsmc::WeightNull
 An empty weight set class. More...
 
class  vsmc::WeightTypeTrait< T >
 Particle::weight_type trait. More...
 
class  vsmc::WeightTypeTrait< T >
 Particle::weight_type trait. More...
 

Namespaces

 vsmc
 
 vsmc::internal
 

Typedefs

template<typename T >
using vsmc::WeightType = typename WeightTypeTrait< T >::type
 

Functions

double vsmc::weight_ess (std::size_t N, const double *first)
 Compute the ess given normalized weights. More...
 
void vsmc::weight_normalize (std::size_t N, double *first)
 Normalize weights such that the summation is one. More...
 
void vsmc::weight_normalize_log (std::size_t N, double *first)
 Normalize logarithm weights such that the maximum is zero. More...