BIE::GalaxyModelOneDHashed Class Reference

Simple test galaxy model with one flux and hash map caching. More...

#include <GalaxyModelOneDHashed.h>

Inheritance diagram for BIE::GalaxyModelOneDHashed:
Collaboration diagram for BIE::GalaxyModelOneDHashed:

List of all members.

Public Member Functions

 GalaxyModelOneDHashed (int ndim, int mdim, SampleDistribution *_dist)
 Constructor.
 ~GalaxyModelOneDHashed ()
 Destructor.
void SetKnots (int num)
 Reset number of integration points.
void LogLineOfSight (double Smin)
 Logarithmic spacing of integration knots along the line of sight.
void LinearLineOfSight ()
 Linear spacing of integration knots along the line of sight.
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=NULL)
 Compute normalization of tiles.
vector< double > Evaluate (double x, double y, SampleDistribution *d=NULL)
 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).
Global parameters
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 double SIGK
 Std dev in standard candle magnitudes (default 0.25).
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.
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.
static bool logs
 Log line of sight.
static double smin
 Minimum los.

Protected Member Functions

virtual CacheGalaxyModelgenerate (const coordPair &, SampleDistribution *sd=NULL)
 Compute line-of-sight values.
virtual CacheGalaxyModelcompute_bins (const coordPair &, SampleDistribution *sd)
 Compute bin values for current parameter vector.
void check_bounds ()
 Check that parameter values are in bounds and set flag.

Protected Attributes

int M
 Maximum number of components in the mixture.
int Mcur
 Current number of components in the mixture.
int Ndim
 Number of model dimensions.
JacoQuad * intgr
 Integrator.
vector< double > wt
 Component weights.
vector< vector< double > > pt
 Parameter vectors for each component.
bool good_bounds
 True if paramter vector values are in bounds.
mmapGalCM cache
 Cache element hash map.
coordPair lastP
 Last coordinate evaluated.
int missed
 Tally hash misses.
EvalType type
 Type of evaluation (e.g. point or bined).
int nbins
 Histogram components.
vector< double > lowb
 Low values of bin edges.
vector< double > highb
 High values of bin edges.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg
 Number of radians per degree.
static const char * LENGTH_FIELDNAME
 Constants related to record type.
static const char * HEIGHT_FIELDNAME
 Description of scale-height field.
static const char * PARAM_NAMES []
 Description of all other fields.

Friends

class boost::serialization::access


Detailed Description

Simple test galaxy model with one flux and hash map caching.

Member Function Documentation

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

Initialize state dependent part of calculation.

From State vector

Implements BIE::Model.


Member Data Documentation

Jacobi quadrature parameters (default: 0, 0).

See also:
GalaxyModelND for more details Alpha exponent

Limits for model parameters.

Minimum scale length

Log line of sight.

Flag

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

Constants.

$\ln(10)$

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

Constants related to record type.

Description of scale-length field

Histogram components.

Number of bins


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