BIE::GalaxyModelND Class Reference

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

#include <GalaxyModelND.h>

Inheritance diagram for BIE::GalaxyModelND:
Collaboration diagram for BIE::GalaxyModelND:

List of all members.

Public Member Functions

 GalaxyModelND (int ndim, int mdim, SampleDistribution *histo)
 Constructor.
 ~GalaxyModelND ()
 Destructor.
void SetKnots (int num)
 Reset number of integration points.
void CacheLimit (int num)
 Maximum number of cache elements (default=0, unlimited).
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, SampleDistribution *d)
 Compute normalization of tiles (binned).
virtual double NormEval (double x, double y)
 Line of sight eval for point normalization.
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)

Static Public Attributes

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
static double R0
 Observers position (kpc) (default 8.0).
static double RMAX
static double AK
 Extinction (mags) (default 0.1).
static double AMIN
 Limits for model parameters.
static double AMAX
static double HMIN
static double HMAX
static string BASISDATA
 File defining stellar classes.

Protected Member Functions

virtual void manageCache (coordPair &)
 Maintain memory store for cache elements.
virtual void generate (double L, double B, SampleDistribution *sd=NULL)
 Compute line-of-site quantities.
virtual void compute_bins ()
 Compute bins for current parameter vector.
void check_bounds ()
 Check parameter bounds and set flag.

Protected Attributes

int M
 Maximum number of components in mixture.
int Mcur
 Current number of components in mixture.
int Ndim
 Number of model dimensions.
unsigned int cache_limit
 Maximum number of sight lines kept in cache.
vector< double > flux
 Point components.
int Nflux
 Number of data dimensions.
vector< double > lolim
 Low flux limit.
vector< double > hilim
 High flux limit.
JacoQuad * intgr
 Integrator.
vector< double > wt
 Component weights.
vector< vector< double > > pt
 Parameter vectors for each comonent.
vector< double > work
 Work vector for bin computation.
bool good_bounds
 Flag is true if parameter value are in bounds.
mmapGalCM cache
 The line-of-sight element cache.
mmapGalCM::iterator mit
 Line-of-sight cache iterator.
deque< coordPair > cacheList
 List of cche keys (for cache maintenance).
CacheGalaxyModelcurrent
 Current line of sight.
int missed
 Number of cache misses.
EvalType type
 Evaluation type (e.g. binned or point).
int nbins
 Histogram components.
vector< dvector > lowb
 Low values for bin boundaries.
vector< dvector > highb
 High values for bin boundaries.
int nparam
 Stellar components.
vector< double > w
 Weights for each component.
vector< dvector > pos
 Centers for each component.
vector< dvector > sig
 Widths for each component.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg
 Number of radian per degree.
static const char * LENGTH_FIELDNAME
 Constants related to record type.
static const char * HEIGHT_FIELDNAME
 Height name.
static const char * PARAM_NAMES []
 Other paramter names.

Friends

class boost::serialization::access


Detailed Description

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

Member Data Documentation

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

Constants.

$\ln(10)$

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

Constants related to record type.

Length name

int BIE::GalaxyModelND::nbins [protected]

Histogram components.

Number of bins

int BIE::GalaxyModelND::nparam [protected]

Stellar components.

Number of components


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