A collection of SampleableObject objects. It can be used to sample from by selecting a volume weighted by surface area or volume.
More...
#include <RMGVertexConfinement.hh>
|
|
std::vector< SampleableObject > | data |
| |
|
double | total_volume = 0 |
| |
|
double | total_mass = 0 |
| |
|
double | total_surface = 0 |
| |
A collection of SampleableObject objects. It can be used to sample from by selecting a volume weighted by surface area or volume.
◆ SurfaceWeightedRand()
◆ VolumeWeightedRand()
Select a SampleableObject from the collection, weighted by volume.
- Returns
- a reference to the chosen
SampleableObject .
- Parameters
-
| weight_by_mass | A flag of whether the volume weighting should be done by mass and not by volume. |
The documentation for this struct was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/remage/checkouts/latest/include/RMGVertexConfinement.hh
- /home/docs/checkouts/readthedocs.org/user_builds/remage/checkouts/latest/src/RMGVertexConfinement.cc