#include <imf.h>
Public Member Functions | |
CPowerlaw (double exponent, double lower_mass_bound, double upper_mass_bound) | |
double | get_nstars_frac (double mass, double m_low, double m_high) |
double | get_nstars_all (double mass) |
double | calculate_norm (void) |
double | get_imf_val (double) |
Private Member Functions | |
double | moment_zero (double, double) |
double | moment_first (double, double) |
Private Attributes | |
double | exponent |
double | lower_mass_bound |
double | upper_mass_bound |
double | nstarfrac_coeff |
double | nstarall_coeff |
double | norm |
double CPowerlaw::exponent [private] |
power law of the shape x^(-(exponent+1)). exponent-1.35: Salpeter IMF
double CPowerlaw::lower_mass_bound [private] |
lower mass bound of the imf
double CPowerlaw::norm [private] |
Interpreting the IMF phi(m) as the chance of having a star with mass m, norm is the resulting normalisation constant: {mL}^{mu} (m)dm = 1
double CPowerlaw::nstarall_coeff [private] |
coefficient used to get the total number of stars in the SSP
double CPowerlaw::nstarfrac_coeff [private] |
coefficient used to get the number of stars in a mass interval
double CPowerlaw::upper_mass_bound [private] |
upper mass bound of the imf