BIE::PopModelCacheF Class Reference

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

#include <PopModelCacheF.h>

Inheritance diagram for BIE::PopModelCacheF:
Collaboration diagram for BIE::PopModelCacheF:

List of all members.
double m0flux
 Confusion calculation stuff.
double m1flux
 First flux moment.
double m2flux
 Second flux moment.
double mmean
 Mean bin flux.
double mmean2
 Mean squared bin flux.
double mavg
 Bin density.
double mnorm
 Normalization value.
double mback
 Background value.
bool mm_computed
 True if flux statistics have been computed.
bool mm_use
 True if flux statistics are to be accumulated.
void compute_mm ()
 Compute the flux statistics.
double mm_fraction (double mm)
 The fraction of the standard candle tracer observed at the given flux.

Public Member Functions

 PopModelCacheF (int ndim, int mdim, int num, SampleDistribution *histo, PopulationsApp *Pop)
 Constructor.
 ~PopModelCacheF ()
 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
 Scale length maximum.
static double HMIN
 Scale height minimum.
static double HMAX
 Scale height maximum.

Protected Member Functions

virtual PopCacheFgenerate (const coordPair &P, SampleDistribution *d)
 Compute the line-of-sight quantities.
virtual PopCacheFcompute_bins (const coordPair &P, SampleDistribution *d)
 Compute the values of the bins.
void check_bounds ()
 Check that paraemter values are in-bounds.

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
 Integrator.
int M
 Maximum number in mixture.
int Mcur
 Current number in mixture.
int Ndim
 Number of model dimensions.
vector< double > wt
 Component weights.
vector< double > * pt
 Component parameter vectors.
vector< double > work
 Workspace.
bool good_bounds
 True if parameter vector is in-bounds.
mmap cache
 The line-of-sight cache.
CacheList cachelist
 The list of line-of-sight entries.
coordPair lastP
 The last coordinate pair retrieved.
int nages
 Number of ages for each cache element.
vector< double > ages
 Age list.
vector< double > popweight
 Weight for each age component.
vector< bool > marge
 Indicator vector for marginalizing the flux values.
EvalType type
 Evaluation type.
int nbins
 Histogram components.
vector< dvector > lowb
 Low values for bins.
vector< dvector > highb
 High values for bins.
unsigned maxvmsize
 Cache parameters.
unsigned vmsize
 Current virtual memory size.
unsigned max_element
 Maximum cache element size.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg
 Number of 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 constant and the same for all components in the mixture. A more general model is PopModelCacheSF which allows an arbitrary specification of an SF rate basis at the expense of additional storage.


Member Function Documentation

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

Initialize state dependent part of calculation.

From a state vector

Implements BIE::Model.


Member Data Documentation

double BIE::PopModelCacheF::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::PopModelCacheF::AMIN [static]

Limits for model parameters.

Scale length minimum

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

Constants.

$\ln(10)$

int BIE::PopModelCacheF::nbins [protected]

Histogram components.

Number of bins

unsigned BIE::PopModelCacheF::maxvmsize [protected]

Cache parameters.

Maximum allowed virtual memory

double BIE::PopModelCacheF::m0flux [protected]

Confusion calculation stuff.

Zeroth flux moment


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