BIE::GaussTestLikelihoodFunction Class Reference

A "user-defined" likelihood function for testing. More...

#include <GaussTestLikelihoodFunction.h>

Inheritance diagram for BIE::GaussTestLikelihoodFunction:
Collaboration diagram for BIE::GaussTestLikelihoodFunction:

List of all members.

Public Member Functions

 GaussTestLikelihoodFunction ()
 Null constructor.
 GaussTestLikelihoodFunction (int Nbins, int N0)
 Constructor with number of bins and number of sample points.
 GaussTestLikelihoodFunction (int N0)
 Constructor with number of sample points for point model.
 ~GaussTestLikelihoodFunction ()
 Destructor.
void useCauchyModel (bool b)
 Set the likelihood model to a Cauchy distribution.
void useCauchyData (bool b)
 Generate the data from a Cauchy distribution.
void newModel (string file)
 Read the model from a file with name.
void SetDim (int n)
 Set the model dimension (currently either 1 or 2).
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 defaultModel ()
 Make a model with default parameters.
void makeSyntheticData ()
 Make the synthetic binned data.
void makeSyntheticPointData ()
 Make the synthetic point data.
double LocalLikelihood (State *s)
 This is likelihood function.

Friends

class boost::serialization::access


Detailed Description

A "user-defined" likelihood function for testing.

The "data" is the combination of two one-dimensional Gaussians, one at 0.2 with variance of 0.03 and one at 0.9 with variance of 0.03 with 50% weights each.

The variance may be modeled or fixed (using the SetDim member). One may choose either point or binned data. The default is point.


Member Function Documentation

void BIE::GaussTestLikelihoodFunction::newModel ( string  file  ) 

Read the model from a file with name.

Parameters:
file 


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