BIE::GaussTest2D Class Reference

A "user-defined" likelihood function for testing a image object similar to a galaxy image but without any intrisic magnitude. More...

#include <GaussTest2D.h>

Inheritance diagram for BIE::GaussTest2D:
Collaboration diagram for BIE::GaussTest2D:

List of all members.

Public Member Functions

 GaussTest2D ()
 Null constructor.
 GaussTest2D (int N0, int Nbins, int Levels)
 Constructor with number of points given by.
 GaussTest2D (int N0, int Nbins, int Levels, vector< double > *cen0, vector< double > *var0)
 Constructor with number of points given by.
 GaussTest2D (int N0, int Nbins, int Levels, vector< double > *wght, vector< double > *cen0, vector< double > *var0)
 Constructor with number of points given by.
 GaussTest2D (int N0, int Nbins, int Levels, vector< double > *wght, vector< double > *cen0, vector< double > *var0, vector< double > *phi0)
 Constructor with number of points given by.
void SetDim (int n)
 Set the model dimension (currently either 1, 2 or 3).
void SetFix2 (vector< double > *var2)
 Two components packed into a single component.
void PrintData ()
 Print data to a file for the current level.
double LikeProb (std::vector< double > &z, SampleDistribution *sd, double norm, Tile *t, State *s, int indx)
 This is likelihood function.
string ParameterDescription (int i)
 Label parameters. Scheduled for removal.

Protected Member Functions

void makeSyntheticData ()
 Make the synthetic data.
double LocalLikelihood (State *s)
 This is likelihood function.

Friends

class boost::serialization::access


Detailed Description

A "user-defined" likelihood function for testing a image object similar to a galaxy image but without any intrisic magnitude.

The singal-to-noise ratio is determined by the number of points used to define the image. For example, if we define the signal to noise ratio as the counts over the root variance of the counts for the inner half-light, then a signal to noise ratio of 100 would obtain for

\[ 100 = \frac{N/2}{\sqrt{N/2}} = \sqrt(N/2) \]

which yields $N=200000$.

By default, the image "data" is the combination of a single 2-dimensional Gaussian distribution with center at 0.5 and variance of 0.03 in each dimension. The default model may be changed at construction.

The variance may be modeled (dim=2) or fixed (dim=1) and one may include an arbitrary position angle (dim=3) using the SetDim(dim) member. dim=3 implies variable center, variance and position angle.

Finally, two components packed into a single component, in order to keep the centers coincident and fix the shape of the second component. The first component is the relative weight of the two components followed by $x_c$ and $y_c$ if dim=1, $x_c, \sigma_x^2, y_c, \sigma_y^2$ if dim=2 and $x_c, \sigma_x^2, y_c, \sigma_y^2, \phi_1, \phi_2$ if dim=3.


Constructor & Destructor Documentation

BIE::GaussTest2D::GaussTest2D ( int  N0,
int  Nbins,
int  Levels 
)

Constructor with number of points given by.

Parameters:
N0,number of bins
Nbins partitioned by
Levels. If
Levels is equal to smaller than 1, a single parition is used.

BIE::GaussTest2D::GaussTest2D ( int  N0,
int  Nbins,
int  Levels,
vector< double > *  cen0,
vector< double > *  var0 
)

Constructor with number of points given by.

Parameters:
N0 and
Nbins bins partition by
Levels. If
Levels is equal to smaller than 1, a single parition is used. Vectors
cen0,@param var0, and are the centers and variance values and the rank of these vectors (which must agree) implicitly specifies the dimension.

BIE::GaussTest2D::GaussTest2D ( int  N0,
int  Nbins,
int  Levels,
vector< double > *  wght,
vector< double > *  cen0,
vector< double > *  var0 
)

Constructor with number of points given by.

Parameters:
N0 and
Nbins bins partition by
Levels. If
Levels is equal to smaller than 1, a single partition is used. Vectors
cen0 and
var0 are the centers and variance values and the rank of these vectors (which must agree) implicitly specifies the dimension.
wght is a multicomponent weight vector. If dim(wght) > 1, the vectors are assumed to be appended serially.

BIE::GaussTest2D::GaussTest2D ( int  N0,
int  Nbins,
int  Levels,
vector< double > *  wght,
vector< double > *  cen0,
vector< double > *  var0,
vector< double > *  phi0 
)

Constructor with number of points given by.

Parameters:
N0 and
Nbins bins partition by
Levels. If
Levels is equal to smaller than 1, a single partition is used. Vectors
cen0,@param var0, and
phi0 are the centers, variance and orientation values and the rank of these vectors (which must agree) implicitly specifies the dimension.
wght is a multicomponent weight vector. If dim(wght) > 1, the vectors are assumed to be appended serially.


Member Function Documentation

void BIE::GaussTest2D::SetFix2 ( vector< double > *  var2  ) 

Two components packed into a single component.

The center of the second, "fixed", component is coicident with the first component and the variance of this component is the vector

Parameters:
var2 


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