Class which represents a polyenergetic energy spectrum.
More...
#include <source.h>
Class which represents a polyenergetic energy spectrum.
Definition at line 55 of file source.h.
◆ PolyenergeticSpectrum()
PolyenergeticSpectrum::PolyenergeticSpectrum |
( |
const Eigen::Matrix< double, Eigen::Dynamic, 2 > & | probabilities_matrix | ) |
|
|
explicit |
Constructor for the PolyenergeticSpectrum class.
- Parameters
-
probabilities_matrix | A matrix where the first column is the energy and the second column is the probability. |
◆ getExpectationValue()
double PolyenergeticSpectrum::getExpectationValue |
( |
| ) |
const |
Returns the expectation value of the polyenergetic spectrum.
- Returns
- The expectation value of the polyenergetic spectrum.
◆ sampleEnergy()
double PolyenergeticSpectrum::sampleEnergy |
( |
| ) |
|
|
overridevirtual |
Returns a sample from the polyenergetic spectrum.
- Returns
- A sample from the polyenergetic spectrum.
Implements EnergySpectrum.
◆ energy_dist_
◆ probabilities_matrix_
Eigen::Matrix<double, Eigen::Dynamic, 2> PolyenergeticSpectrum::probabilities_matrix_ |
|
private |
The documentation for this class was generated from the following file: