Exponential/Sech^2 disk mixture model in flux^n or flux*color^{n-1} space.
|
| double | m0flux |
| | Confusion calculation variables.
|
|
double | m1flux |
| | First moment of flux values.
|
|
double | m2flux |
| | Second moment of flux values.
|
|
double | mmean |
| | Mean bin value.
|
|
double | mmean2 |
| | Mean squared bin value.
|
|
double | mavg |
| | Mean weight per bin.
|
|
double | mnorm |
| | Normalization for flux bins.
|
|
double | mback |
| | Background value.
|
|
bool | mm_computed |
| | Statistics computed.
|
|
bool | mm_use |
| | Statistics are being accumulated.
|
|
void | compute_mm () |
| | Compute bin statistics.
|
|
double | mm_fraction (double mm) |
| | Cumulative fraction beyond flux limit.
|
Public Member Functions |
|
| PopModelCacheSF (int ndim, int mdim, int num, SampleDistribution *histo, PopulationsApp *Pop, string basisfile) |
| | Constructor.
|
|
| ~PopModelCacheSF () |
| | Destructor.
|
|
void | SetLineOfSight (double rmin, double rmax, bool rlog) |
| | Reset line of sight parameters.
|
|
void | UseVectorCache () |
| | Set bin store in cache to vector of reals.
|
|
void | UseHashCache () |
| | Set bin store in cache to a hash map.
|
|
void | SetMagNorm (double x, double y) |
| | Set the fiducial model normalization for confusion noise calculation and the background pixel counts.
|
|
double | GetEMag0 () |
| | Get the expectation value of line-of-sight.
|
|
double | GetEMag1 () |
| | Get the expectation value of line-of-sight magnitude.
|
|
double | GetEMag2 () |
| | Get the expectation value of line-of-sight squared magnitude.
|
|
void | ResetCache () |
| | Reset model cache.
|
|
virtual double | NormEval (double x, double y, SampleDistribution *d) |
| | Compute normalization of tiles.
|
|
virtual vector< double > | Evaluate (double x, double y, SampleDistribution *d) |
| | Main method returning source density.
|
|
string | ParameterDescription (int i) |
| | Label parameters.
|
|
int | DataDimension () |
| | Dimension of data attributes.
|
|
void | PrintCache () |
| | Print cache entries (for debugging).
|
|
void | SetExtinctionFactor (double efac) |
| | Change the default extinction value by constant factor.
|
|
| void | Initialize (State &) |
| | Initialize state dependent part of calculation.
|
|
void | Initialize (vector< double > &w, vector< double > *&p) |
| | From a component weights and parameter vectors.
|
Static Public Attributes |
|
static double | R0 |
| | Observers position (kpc) (default 8.0).
|
|
static double | A1 |
| | Extinction slab size (kpc) (default 15.0).
|
|
static double | Z1 |
| | Extinction slab height (pc) (default 150.0).
|
|
static double | Z0 |
| | Vertical position of sun (pc) (default 15.0).
|
|
static double | EFAC |
| | Multiplicative extinction factor (default 1.0).
|
|
static double | EMAX |
| | Maximum allowed line-of-sight extinction (default 2.0).
|
|
static int | NEBV |
| | Number of knots for integration over E(B-V).
|
|
static bool | RLOG |
| | Use logarithmic scaling (default: true).
|
|
static double | RMIN |
| | Minimum radius (kpc) (default: 0.010).
|
|
static double | RMAX |
| | Maximum radius (kpc) (default: 20.0).
|
|
static BirthRate | BRmodel |
| | Birth rate models.
|
|
static double | BURST |
| | Birth rate burst fraction.
|
|
static double | NU |
| | Birth rate power law index.
|
|
static string | DataDir |
| | File defining stellar classes.
|
|
static double | zerotol |
| | Minimum value for value in cache.
|
|
static bool | use_vector |
| | Set cache type (true means use vector, false means use hash map).
|
|
|
static double | METAL |
| | Metallicity (default: 0.019).
|
| static double | ALPHA |
| | Jacobi quadrature parameters (default: 0, 0).
|
|
static double | BETA |
| | Beta exponent value.
|
|
| static bool | DELTA |
| | All density at a single distance R0 with width DR0 (for testing).
|
|
static double | RT0 |
| | Line-of-sight distance.
|
|
static double | DRT0 |
| | Width along line of sight.
|
|
| static bool | RING |
| | Molecular ring and central extinction (default false).
|
|
static double | RINGWIDTH |
| | Width of the ring.
|
|
static double | RINGAMP |
| | Strength of the ring in .
|
|
static double | RINGLOC |
| | Radius of the ring.
|
|
static double | CENTERWIDTH |
| | Width of the central extinction.
|
|
static double | CENTERAMP |
| | Amplitude of the central extinction.
|
|
static double | NEARBYWIDTH |
| | Width of nearby excess.
|
|
static double | NEARBYAMP |
| | Amplitude of nearby excess.
|
|
| static double | AMIN |
| | Limits for model parameters.
|
|
static double | AMAX |
| | Maximum scale length.
|
|
static double | HMIN |
| | Minimum scale height.
|
|
static double | HMAX |
| | Maximum scale height.
|
Protected Member Functions |
|
virtual PopCacheSF * | generate (const coordPair &P, SampleDistribution *d) |
| | Compute model.
|
|
virtual PopCacheSF * | compute_bins (const coordPair &P, SampleDistribution *d) |
| | Compute bins.
|
|
void | check_bounds () |
| | Compute bounds function.
|
|
|
void | NormalizePopWeights (vector< double > *&p) |
|
void | NormalizePopWeights (State &s) |
Protected Attributes |
|
int | NUM |
| | Number of integration knots for Jacobi quadrature.
|
|
bool | cmd |
| | CMD or flux.
|
|
PopulationsApp * | pops |
| | Population model.
|
|
pid_t | pid |
| | Parent process id.
|
|
int | Nflux |
| | Number of data dimensions.
|
| JacoQuad * | intgr |
| | Stellar components.
|
|
int | M |
| | Total number in mixture.
|
|
int | Mcur |
| | Current number in mixture.
|
|
int | Ndim |
| | Number of model dimensions.
|
|
bool | good_bounds |
| | Bounds flag.
|
|
vector< bool > | marge |
| | Marginalization flags.
|
|
EvalType | type |
| | Evaluation type.
|
|
| int | nbins |
| | Histogram components.
|
|
vector< dvector > | lowb |
| | Low values of bins.
|
|
vector< dvector > | highb |
| | High values of bins.
|
|
| vector< double > | wt |
| | State vector.
|
|
vector< double > * | pt |
| | Parameters.
|
|
|
vector< double > | work |
| | Work space.
|
|
vector< double > | ptt |
|
double * | ss |
|
| mmapSF | cache |
| | Cache variables.
|
|
CacheListSF | cachelist |
| | The list of entries.
|
|
coordPair | lastP |
| | The last element retrieved.
|
|
int | nages |
| | Number of ages for each element.
|
|
int | nbasis |
| | The number in the birth-rate basis basis.
|
|
vector< double > | ages |
| | The age values in the grid.
|
|
vector< double > | popweight |
| | The weights in the total population for each age.
|
|
vector< rvector > | basis |
| | The basis functions (vectors).
|
|
| unsigned | maxvmsize |
| | Cache parameters.
|
|
unsigned | vmsize |
| | Currently used virtual memory.
|
|
unsigned | max_element |
| | Maximum virtual memory per cache element.
|
Static Protected Attributes |
|
| static double | Log10 |
| | Constants.
|
|
static double | onedeg |
| | Radians per degree.
|
Friends |
|
class | boost::serialization::access |
Exponential/Sech^2 disk mixture model in flux^n or flux*color^{n-1} space.
The star formation history is specified in SF rate basis in a file named basis.data.
A constant fixed birth rate model is used to for the confusion computation. This model is the same as in PopModelCacheF.
The format for basis.data is as follows: the first line is an integer specifying the number of members of the basis, the second line is the number of temporal bins and this must match the input isochrone data, basis members are speficied in each successive line as a row of weights for each temporal bin.