BIE::PopModelCacheSF Class Reference

Exponential/Sech^2 disk mixture model in flux^n or flux*color^{n-1} space. More...

#include <PopModelCacheSF.h>

Inheritance diagram for BIE::PopModelCacheSF:
Collaboration diagram for BIE::PopModelCacheSF:

List of all members.
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).
Global parameters
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 $A_v$.
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 PopCacheSFgenerate (const coordPair &P, SampleDistribution *d)
 Compute model.
virtual PopCacheSFcompute_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.
PopulationsApppops
 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


Detailed Description

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.


Member Function Documentation

void BIE::PopModelCacheSF::Initialize ( State  )  [virtual]

Initialize state dependent part of calculation.

From a state vector

Implements BIE::Model.


Member Data Documentation

double BIE::PopModelCacheSF::ALPHA [static]

Jacobi quadrature parameters (default: 0, 0).

See also:
PopModelND for details. Alpha exponent value

All density at a single distance R0 with width DR0 (for testing).

Use this "test pulse"

Molecular ring and central extinction (default false).

Include this extincition model

double BIE::PopModelCacheSF::AMIN [static]

Limits for model parameters.

Minimum scale length

double BIE::PopModelCacheSF::Log10 [static, protected]

Constants.

$\ln(10)$

int BIE::PopModelCacheSF::nbins [protected]

Histogram components.

Number of bins

JacoQuad* BIE::PopModelCacheSF::intgr [protected]

Stellar components.

Integrator

vector<double> BIE::PopModelCacheSF::wt [protected]

State vector.

Weights

mmapSF BIE::PopModelCacheSF::cache [protected]

Cache variables.

The cache itself

unsigned BIE::PopModelCacheSF::maxvmsize [protected]

Cache parameters.

Maximum virtual memory limit

double BIE::PopModelCacheSF::m0flux [protected]

Confusion calculation variables.

Zeroth moment of flux values


The documentation for this class was generated from the following file:

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:13 2010 by doxygen