BIE::PopModelCache Class Reference

Simple test galaxy model with one flux, one color and no caching. More...

#include <PopModelCache.h>

Inheritance diagram for BIE::PopModelCache:
Collaboration diagram for BIE::PopModelCache:

List of all members.

Public Member Functions

 PopModelCache (int ndim, int mdim, SampleDistribution *dist)
 Constructor.
 ~PopModelCache ()
 Destructor.
void SetKnots (int num)
 Reset number of integration points.
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 Initialize (State &)
 Initialize state dependent part of calculation.
void Initialize (vector< double > &w, vector< double > *&p)
 From 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 RMIN
 Minimum radius (kpc) (default: 0.01 [10 pc]).
static double RMAX
 Maximum radius (kpc) (default: 20.0 [20 kpc]).
static bool RLOG
 Use logarithmic scaling for line-of-sight integration (default: false).
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.
Global parameters
static int NUM
 Number of integration knots for Jacobi quadrature (default 200).
static double METAL
 Metallicity (default: 0.019).
static double ALPHA
 Jacobi quadrature parameters (default: 0, 0).
static double BETA
 Beta exponent.
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 void generate (double L, double B)
 Compute model predictions.
virtual void compute_bins (SampleDistribution *sd)
 Compute bins.
void check_bounds ()
 Check for good bounds.

Protected Attributes

PopulationsApppops
 Population model.
pid_t pid
 Parent process id.
vector< double > flux
 Point components.
int Nflux
 Number of data dimensions.
JacoQuad * intgr
 Stellar components.
int M
 Maximum number in mixture.
int Mcur
 Current number in mixture.
int Ndim
 Number of model dimensions.
vector< double > work
 Work space.
bool good_bounds
 Bounds flag.
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< vector< double > > pt
 Parameters.
vector< PopCache * > cache
 Cache variables.
int listCntr
 The current counter.
int missed
 The number of cache misses.
int nages
 Number of ages for each element.
vector< double > ages
 The age values in the grid.
vector< double > popweight
 The weights in the total population for each age.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg
 Radians per degree.

Friends

class boost::serialization::access


Detailed Description

Simple test galaxy model with one flux, one color and no caching.

Member Function Documentation

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

Initialize state dependent part of calculation.

From state vector

Implements BIE::Model.


Member Data Documentation

double BIE::PopModelCache::ALPHA [static]

Jacobi quadrature parameters (default: 0, 0).

See also:
PopModelND for more details Alpha exponent

bool BIE::PopModelCache::RING [static]

Molecular ring and central extinction (default false).

Include this extincition model

double BIE::PopModelCache::AMIN [static]

Limits for model parameters.

Minimum scale length

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

Constants.

$\ln(10)$

int BIE::PopModelCache::nbins [protected]

Histogram components.

Number of bins

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

Stellar components.

Integrator

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

State vector.

Weights

vector<PopCache*> BIE::PopModelCache::cache [protected]

Cache variables.

The cache itself


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