Thermal-FIST 1.5
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
thermalfist::RandomGenerators::VolumeElementSampler Class Reference

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
 

Detailed Description

Sample the volume element on a hypersurface from a multinomial distribution.

Definition at line 39 of file HypersurfaceSampler.h.

Constructor & Destructor Documentation

◆ VolumeElementSampler() [1/2]

thermalfist::RandomGenerators::VolumeElementSampler::VolumeElementSampler ( const ParticlizationHypersurface * Hypersurface = NULL)

Definition at line 23 of file HypersurfaceSampler.cpp.

◆ VolumeElementSampler() [2/2]

thermalfist::RandomGenerators::VolumeElementSampler::VolumeElementSampler ( const std::vector< double > & Weights)

Definition at line 29 of file HypersurfaceSampler.cpp.

Member Function Documentation

◆ FillProbabilities() [1/2]

void thermalfist::RandomGenerators::VolumeElementSampler::FillProbabilities ( const ParticlizationHypersurface * Hypersurface)

Definition at line 34 of file HypersurfaceSampler.cpp.

◆ FillProbabilities() [2/2]

void thermalfist::RandomGenerators::VolumeElementSampler::FillProbabilities ( const std::vector< double > & Weights)

Definition at line 46 of file HypersurfaceSampler.cpp.

◆ SampleVolumeElement()

int thermalfist::RandomGenerators::VolumeElementSampler::SampleVolumeElement ( MTRand & rangen = RandomGenerators::randgenMT) const

Definition at line 61 of file HypersurfaceSampler.cpp.

◆ SetProbabilities()

void thermalfist::RandomGenerators::VolumeElementSampler::SetProbabilities ( const std::vector< double > & CumulativeProbabilities)
inline

Definition at line 46 of file HypersurfaceSampler.h.


The documentation for this class was generated from the following files: