BIE::PopModelND Class Reference

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

#include <PopModelND.h>

Inheritance diagram for BIE::PopModelND:
Collaboration diagram for BIE::PopModelND:

List of all members.

Public Member Functions

 PopModelND (int ndim, int mdim, SampleDistribution *dist)
 Constructor ndim is the number of model dimensions mdim is the number of components dist is the data distribution.
 ~PopModelND ()
 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 RMAX
 Maximum radius (kpc) (default 20.0).
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 index value.
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, SampleDistribution *sd)
 Generate model.
virtual void compute_bins ()
 Compute the bin values.
void check_bounds ()
 Bounds checking function.

Protected Attributes

PopulationsApppops
 Population model.
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 > work
 Working vector.
bool good_bounds
 Bounds flag.
EvalType type
 Evaluation type.
int nbins
 Histogram components.
vector< dvector > lowb
 Lower bin edges.
vector< dvector > highb
 Upper bin edges.
vector< double > wt
 State.
vector< double > * pt
vector< NDPopCachedModel * > cache
 Model cache structure.
int listCntr
 The currently active cache element.
int missed
 Number of cache misses.
int nages
 Number of ages for each cache element.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg
 Number 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::PopModelND::Initialize ( State  )  [virtual]

Initialize state dependent part of calculation.

From a state vector

Implements BIE::Model.


Member Data Documentation

double BIE::PopModelND::ALPHA [static]

Jacobi quadrature parameters (default: 0, 0).

NB: For real $x$ the Jacobi polynomial is:

\[ P_n^{(\alpha,\beta)}(x)= \sum_s {n+\alpha\choose s}{n+\beta \choose n-s} \left(\frac{x-1}{2}\right)^{n-s} \left(\frac{x+1}{2}\right)^{s} \]

The Jacobi polynomials satisfy the orthongonality relationship:

\[ \int_{-1}^1 (1-x)^{\alpha} (1+x)^{\beta} P_m^{(\alpha,\beta)} (x)P_n^{(\alpha,\beta)} (x) \; dx= \frac{2^{\alpha+\beta+1}}{2n+\alpha+\beta+1} \frac{\Gamma(n+\alpha+1)\Gamma(n+\beta+1)}{\Gamma(n+\alpha+\beta+1)n!} \delta_{nm} \]

where $\alpha>-1$ and $\beta>-1$. Alpha index value

double BIE::PopModelND::AMIN [static]

Limits for model parameters.

Minimum scale length

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

Constants.

$\ln(10)$

int BIE::PopModelND::nbins [protected]

Histogram components.

Number of bins

Model cache structure.

The cache elements


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