vSMC
v3.0.0
Scalable Monte Carlo
|
Sampler<T>::eval_type subtype. More...
#include <vsmc/resample/algorithm.hpp>
Public Types | |
using | eval_type = std::function< void(std::size_t, std::size_t, typename Particle< T >::rng_type &, const double *, typename Particle< T >::size_type *)> |
Public Member Functions | |
ResampleEval (const eval_type &eval) | |
Construct a Sampler::move_type object. More... | |
std::size_t | operator() (std::size_t, Particle< T > &particle) const |
Returns how many particles having non-zero replication number. More... | |
void | set_eval (const eval_type &new_eval) |
Set a new evaluation object of type eval_type. More... | |
Static Public Member Functions | |
static constexpr double | always () |
static constexpr double | never () |
Sampler<T>::eval_type subtype.
Definition at line 106 of file algorithm.hpp.
using vsmc::ResampleEval< T >::eval_type = std::function<void(std::size_t, std::size_t, typename Particle<T>::rng_type &, const double *, typename Particle<T>::size_type *)> |
Definition at line 111 of file algorithm.hpp.
|
inlineexplicit |
Construct a Sampler::move_type
object.
eval | A resampling algorithm evaluation object, see interface of ResampleAlgorithm |
Definition at line 117 of file algorithm.hpp.
|
inlinestatic |
Definition at line 119 of file algorithm.hpp.
|
inlinestatic |
Definition at line 124 of file algorithm.hpp.
|
inline |
Returns how many particles having non-zero replication number.
Definition at line 133 of file algorithm.hpp.
|
inline |
Set a new evaluation object of type eval_type.
Definition at line 130 of file algorithm.hpp.