BIE::PopulationsApp Class Reference

Binned isochrone population models with distance moduli. More...

#include <PopulationsApp.h>

Inheritance diagram for BIE::PopulationsApp:
Collaboration diagram for BIE::PopulationsApp:

List of all members.

Public Member Functions

 PopulationsApp (string directory, vector< int > *Marginalize=NULL, bool CMD=false)
 Constructor ----------- "directory" is the path to the isochrone tables the vector<int> should contain three entries which represent the J H K flux values: 0 if the flux is used and 1 to marginalize.
 PopulationsApp (string directory, string isoname, vector< int > *Marginalize=NULL)
 Constructor (CDF version) ----------- "directory" is the path to the isochrone tables "isoname" is the name of the isochrone cdf file the vector<int> should contain three entries which represent the J H K flux values: 0 if the flux is used and 1 to marginalize.
 ~PopulationsApp ()
 Destructor.
void SetParameters (void)
 Set parameters (not currently used.
vector< bool > get_marge (void) const
 Get marginalization flags.
bool CMDflag (void)
 CMD flag.
void UseArray ()
 Store data in an array (more efficient but may use more memory).
void UseHash ()
 Set data in a hash (less efficient but may use less memory).
Accessors
double GetValue (vector< double > &flux, double age, double metal, double distmod)
 Get star count value in bin with given flux, age and metallicity.
double GetValue (vector< int > &indx, int age, int metal, int distmod)
 Get star count value in bin with given grid indices.
double Interpolate (vector< double > &flux, double age, double metal, double distmod)
 Interpolate on flux on grid with given age and metallicity.
double Bin (vector< double > &fmin, vector< double > &fmax, double age, double metal, double distmod)
 Sum over bins beteen flux boundaries.
Grid properties
vector< double > Metal ()
 Get the metallicity values in the grid.
vector< double > Ages ()
 Get the ages in the grid.
vector< double > DistMod ()
 Get the distance moduli in the grid.
vector< double > AgeBoundaries ()
 Get the age boundaries in the grid.
vector< double > MinMag ()
 Get the minimum magnitudes in the grid.
vector< double > MaxMag ()
 Get the maximum magnitudes in the grid.
vector< double > MagDelta ()
 Get the magnitude bin widths in the grid.
vector< int > NumMag ()
 Get the number of mangitude bins in the grid.
Verify data against files (for debugging)
void VerifyDouble ()
 Check the double values.
void VerifyInt ()
 Check the integer values.

Static Public Attributes

static bool verbose
 Turn on debugging info (don't do this . . .).
static bool use_array
 Set data-store type (true means use array, false means use hash).

Friends

class boost::serialization::access


Detailed Description

Binned isochrone population models with distance moduli.

Reads binned isochrone in near-infrared J, H and K bands


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