BIE::GalaxyModelTwoD Class Reference

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

#include <GalaxyModelTwoD.h>

Inheritance diagram for BIE::GalaxyModelTwoD:
Collaboration diagram for BIE::GalaxyModelTwoD:

List of all members.

Public Member Functions

 GalaxyModelTwoD (int ndim, int mdim, SampleDistribution *_dist)
 Constructor.
 ~GalaxyModelTwoD ()
 Destructor.
void SetKnots (int num)
 Reset number of integration points.
void SetExtinction (double A, double Z)
 Radial and Vertical size if extinction slab.
void ResetCache ()
 Reset model cache.
virtual double NormEval (double x, double y)
 Compute normalization for point likelihood.
virtual double NormEval (double x, double y, SampleDistribution *d)
 Compute normalization of tiles.
virtual double NormEvalMeasure (double x, double y)
 Integration measure.
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< vector< double > > &p)
 From component weights and component 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 AK
 Extinction (mags) (default 0.1).
static string BASISDATA
 File defining stellar classes.
Global parameters
static double LMAG
 Minimum apparent magnitude (default 6).
static double HMAG
 Minimum apparent magnitude (default 16).
static double A1
 Extinction scale length (default 20 [kpc]).
static double Z1
 Extinction scale height (default 100 [pc]).
static double K0
 Standard candle magnitude (default -4.0).
static int NUM
 Number of integration knots for Jacobi quadrature (default 200).
static double ALPHA
 Jacobi quadrature parameters (default: 0, 0).
static double BETA
 Beta exponent value.
static double AMIN
 Limits for model parameters.
static double AMAX
 Maximum scale length.
static double HMIN
 Minimum scale height.
static double HMAX
 Maxiimum scale height.

Protected Member Functions

virtual void generate (double L, double B, SampleDistribution *d)
 Compute line-of-sight quantities for these coordinates.
virtual void compute_bins ()
 Compute predicted bin values for current parameter vector.
void check_bounds ()
 Check parameter bounds and set flag.

Protected Attributes

int M
 Total number of components in mixture.
int Mcur
 Current number of components in mixture.
int Ndim
 Number of model dimensions.
vector< double > flux
 Point components.
JacoQuad * intgr
 Integrator.
vector< double > wt
 Weights for each component in the mixture.
vector< vector< double > > pt
 Parameter vector for each component in the mixture.
bool good_bounds
 Flag is true if parameter values are in bounds.
mmapGalCM cache
 Line-of-sight element cache.
mmapGalCM::iterator mit
 Cache iterator.
CacheGalaxyModelcurrent
 Current cache element.
EvalType type
 Type of evaluation (e.g. point or binned).
int nbins
 Histogram components.
vector< double > lowb1
 Low values for first flux dimension.
vector< double > highb1
 High values for first flux dimension.
vector< double > lowb2
 Low values for second flux dimension.
vector< double > highb2
 High values for second flux dimension.
int nparam
 Stellar components.
vector< double > x
 Centers for first dimension.
vector< double > y
 Centers for second dimension.
vector< double > sx
 Widths for first dimension.
vector< double > sy
 Widths for second dimension.
vector< double > w
 Weights for each component.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg
 Radians per degree.
static const char * LENGTH_FIELDNAME
 Constants related to record type.
static const char * HEIGHT_FIELDNAME
 String descriptor for scale height.
static const char * PARAM_NAMES []
 String descriptors for remaining parameters.

Friends

class boost::serialization::access


Detailed Description

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

Member Function Documentation

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

Initialize state dependent part of calculation.

From State vector

Implements BIE::Model.


Member Data Documentation

double BIE::GalaxyModelTwoD::ALPHA [static]

Jacobi quadrature parameters (default: 0, 0).

See also:
GalaxyModelND for more details Alpha exponent value

double BIE::GalaxyModelTwoD::AMIN [static]

Limits for model parameters.

Minimum scale length

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

Constants.

$\ln(10)$

const char* BIE::GalaxyModelTwoD::LENGTH_FIELDNAME [static, protected]

Constants related to record type.

String descriptor for scale length

int BIE::GalaxyModelTwoD::nbins [protected]

Histogram components.

Number of bins

Stellar components.

Number of parameters for the model


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:12 2010 by doxygen