vSMC
vSMC: Scalable Monte Carlo
|
An empty weight set class. More...
#include <vsmc/core/weight.hpp>
Public Types | |
using | size_type = std::size_t |
Public Member Functions | |
WeightNull (size_type) | |
template<typename InputIter > | |
void | add_log (InputIter) |
template<typename RandomIter > | |
void | add_log (RandomIter, int) |
const double * | data () const |
template<typename URNG > | |
size_type | draw (URNG &) const |
double | ess () const |
template<typename InputIter > | |
void | mul (InputIter) |
template<typename RandomIter > | |
void | mul (RandomIter, int) |
void | read_resample_weight (double *) const |
template<typename OutputIter > | |
void | read_weight (OutputIter) const |
template<typename RandomIter > | |
void | read_weight (RandomIter, int) const |
const double * | resample_data () const |
size_type | resample_size () const |
template<typename InputIter > | |
void | set (InputIter) |
template<typename RandomIter > | |
void | set (RandomIter, int) |
void | set_equal () |
template<typename InputIter > | |
void | set_log (InputIter) |
template<typename RandomIter > | |
void | set_log (RandomIter, int) |
size_type | size () const |
An empty weight set class.
This class provides all the interfaces of Weight, while they do nothing at all and the class cost no memory usage. This is primarily to be used in algorithms where weights are irrelevant. Any attempt of using member functions of this class will not result in compile time or runtime errors, but the results might not be what one will be expecting.
Definition at line 241 of file weight.hpp.
using vsmc::WeightNull::size_type = std::size_t |
Definition at line 244 of file weight.hpp.
|
inlineexplicit |
Definition at line 246 of file weight.hpp.
|
inline |
Definition at line 303 of file weight.hpp.
|
inline |
Definition at line 308 of file weight.hpp.
|
inline |
Definition at line 256 of file weight.hpp.
|
inline |
Definition at line 313 of file weight.hpp.
|
inline |
Definition at line 252 of file weight.hpp.
|
inline |
Definition at line 283 of file weight.hpp.
|
inline |
Definition at line 288 of file weight.hpp.
|
inline |
Definition at line 268 of file weight.hpp.
|
inline |
Definition at line 259 of file weight.hpp.
|
inline |
Definition at line 264 of file weight.hpp.
|
inline |
Definition at line 254 of file weight.hpp.
|
inline |
Definition at line 250 of file weight.hpp.
|
inline |
Definition at line 273 of file weight.hpp.
|
inline |
Definition at line 278 of file weight.hpp.
|
inline |
Definition at line 270 of file weight.hpp.
|
inline |
Definition at line 293 of file weight.hpp.
|
inline |
Definition at line 298 of file weight.hpp.
|
inline |
Definition at line 248 of file weight.hpp.