![]() |
Thermal-FIST 1.5
Package for hadron resonance gas model applications
|
Sample the volume element on a hypersurface from a multinomial distribution. More...
#include <HypersurfaceSampler.h>
Public Member Functions | |
VolumeElementSampler (const ParticlizationHypersurface *Hypersurface=NULL) | |
VolumeElementSampler (const std::vector< double > &Weights) | |
void | FillProbabilities (const ParticlizationHypersurface *Hypersurface) |
void | FillProbabilities (const std::vector< double > &Weights) |
void | SetProbabilities (const std::vector< double > &CumulativeProbabilities) |
int | SampleVolumeElement (MTRand &rangen=RandomGenerators::randgenMT) const |
Sample the volume element on a hypersurface from a multinomial distribution.
Definition at line 39 of file HypersurfaceSampler.h.
thermalfist::RandomGenerators::VolumeElementSampler::VolumeElementSampler | ( | const ParticlizationHypersurface * | Hypersurface = NULL | ) |
Definition at line 23 of file HypersurfaceSampler.cpp.
thermalfist::RandomGenerators::VolumeElementSampler::VolumeElementSampler | ( | const std::vector< double > & | Weights | ) |
Definition at line 29 of file HypersurfaceSampler.cpp.
void thermalfist::RandomGenerators::VolumeElementSampler::FillProbabilities | ( | const ParticlizationHypersurface * | Hypersurface | ) |
Definition at line 34 of file HypersurfaceSampler.cpp.
void thermalfist::RandomGenerators::VolumeElementSampler::FillProbabilities | ( | const std::vector< double > & | Weights | ) |
Definition at line 46 of file HypersurfaceSampler.cpp.
int thermalfist::RandomGenerators::VolumeElementSampler::SampleVolumeElement | ( | MTRand & | rangen = RandomGenerators::randgenMT | ) | const |
Definition at line 61 of file HypersurfaceSampler.cpp.
|
inline |
Definition at line 46 of file HypersurfaceSampler.h.