#include <genesis/placement/simulator/distributions.hpp>
Definition at line 185 of file distributions.hpp.
Public Member Functions | |
| SimulatorLikeWeightRatioDistribution ()=default | |
| SimulatorLikeWeightRatioDistribution (SimulatorLikeWeightRatioDistribution &&)=default | |
| SimulatorLikeWeightRatioDistribution (SimulatorLikeWeightRatioDistribution const &)=default | |
| ~SimulatorLikeWeightRatioDistribution ()=default | |
| double | generate () |
| Return a randomly chosen like weight ratio. More... | |
| SimulatorLikeWeightRatioDistribution & | operator= (SimulatorLikeWeightRatioDistribution &&)=default |
| SimulatorLikeWeightRatioDistribution & | operator= (SimulatorLikeWeightRatioDistribution const &)=default |
| void | prepare (Sample const &sample) |
| Prepare the distribution for usage. Needs to be called before generate(). More... | |
Public Attributes | |
| std::vector< double > | intervals |
| std::vector< double > | weights |
|
default |
|
default |
|
default |
|
inline |
Return a randomly chosen like weight ratio.
Definition at line 214 of file distributions.hpp.
|
default |
|
default |
| void prepare | ( | Sample const & | sample | ) |
Prepare the distribution for usage. Needs to be called before generate().
Definition at line 223 of file distributions.cpp.
| std::vector<double> intervals |
Definition at line 225 of file distributions.hpp.
| std::vector<double> weights |
Definition at line 226 of file distributions.hpp.