Class for handling distributions containing the spectra of CR. More...
#include <distribution.h>
Public Member Functions | |
Distribution (Density &, const std::vector< double > &) | |
Constructor to build distribution with input data from a density. | |
~Distribution () | |
Destructor. | |
double | getFlux (int) const |
Return flux at given energy. |
Class for handling distributions containing the spectra of CR.
Distribution::Distribution | ( | Density & | den, |
const std::vector< double > & | ekin | ||
) |
Constructor to build distribution with input data from a density.
den | Density |
ekin | Vector of kinetic energies which should be used for the distribution bins |
double Distribution::getFlux | ( | int | i | ) | const |
Return flux at given energy.
i | vector position of flux |