Simple test galaxy model with one flux and line-of-sight caching.
|
Public Member Functions |
|
| GalaxyModelOneD (int ndim, int mdim, SampleDistribution *_dist) |
| | Constructor.
|
|
| GalaxyModelOneD () |
| | Null constructor.
|
|
| ~GalaxyModelOneD () |
| | 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 of extinction slab.
|
|
void | ExtinctionCoefficient (double ak) |
| | Set value of extinction coefficient (nominally k-band).
|
|
void | CacheLimit (int num) |
| | Maximum number of cache elements (default=0, unlimited).
|
|
void | ModelLimits (double amin, double amax, double hmin, double hmax) |
| | Set limiting values for model parameters.
|
|
void | MaximumDistance (double rmax) |
| | Set line-of-sight extent.
|
|
void | ResetCache () |
| | Reset model cache.
|
|
virtual double | NormEval (double x, double y, SampleDistribution *d=NULL) |
| | Compute normalization of tiles.
|
|
virtual double | NormEval (double x, double y) |
| | Compute normalization for point likelihood.
|
|
virtual double | NormEvalMeasure (double x, double y) |
| | Integration measure.
|
|
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 | LMAG |
| | Minimum magnitude (default 6);.
|
|
static double | HMAG |
| | Maximum 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 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 |
|
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 |
| | 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 void | manageCache (coordPair &) |
| | Maintain memory store for cache elements.
|
|
virtual void | generate (double L, double B, SampleDistribution *sd=NULL) |
| | Compute values along the line-of-sight.
|
|
virtual void | compute_bins () |
| | Compute the bin predictions for the given model paraemeters.
|
|
void | check_bounds () |
| | Check for in-bounds parameters and set flag.
|
Protected Attributes |
|
bool | cache_full |
| | Cache limit exceeded.
|
|
unsigned int | cache_limit |
| | Maximum number of sight lines kept in cache.
|
|
int | M |
| | Maximum number of components in mixture.
|
|
int | Mcur |
| | Current number of components in 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 |
| | Flag is true if parameter values are in bounds.
|
|
mmapGalCM | cache |
| | The line-of-sight element cache.
|
|
mmapGalCM::iterator | mit |
| | Cache iterator.
|
|
deque< coordPair > | cacheList |
| | List of cache coordinates (for management).
|
|
CacheGalaxyModel * | current |
| | Current cache element.
|
|
EvalType | type |
| | Evaluation type (e.g. binned or point).
|
|
| int | nbins |
| | Histogram components.
|
|
vector< double > | lowb |
| | Low value for bin edges.
|
|
vector< double > | highb |
| | Low value for 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 |
| | Descriptor string for scale height.
|
|
static const char * | PARAM_NAMES [] |
| | Descriptor strings for all other parameters.
|
Friends |
|
class | boost::serialization::access |
Simple test galaxy model with one flux and line-of-sight caching.
The line-of-sight quantities that are parameter independent are precomputed and cached for each line of sight.
This is implemented with a hash map and a FIFO queue that is set by default to an infinite number of elements. This may be changed using the CacheLimit() member function.