CBI2 Class Reference

#include <cbi2.h>

List of all members.

Public Member Functions

 CBI2 (CL &)
double chi2 (double beamErrorAdjust=0, double calibrationFactor=1)
double chi2WithCalibration ()
 Cl's in muK^2.

Public Attributes

std::map< int, bool > bandDeselect
 All integers appearing here will be considered de-selected from the CBI2000+01 likelihood. Counting goes from 0 to 14.

Protected Member Functions

void init ()
double windowConv (int windowNumber, Spline &Cl, double cut_l)

Private Attributes

bool initialized
const CLmCl
std::vector< NewdatReader::BandmExpData
NewdatReader::Matrix mMatrix
std::map< int, bool > mSavedBandDeselect
double mThband [15]


Detailed Description

Class to compute the CBI2 likelihood of a given Cl-spectrum.

Example usage:

   CBI2 cbi2(cl);
   // deselect the very first and last bands
   cbi2.bandDeselect[0] = true;
   cbi2.bandDeselect[14] = true;
   double chisq = cbi2.chi2WithCalibration();

Definition at line 25 of file cbi2.h.


Constructor & Destructor Documentation

CBI2::CBI2 CL  ) 
 

Definition at line 14 of file cbi2.cc.


Member Function Documentation

double CBI2::chi2 double  beamErrorAdjust = 0,
double  calibrationFactor = 1
 

chi2 returns the chi^2 w.r.t. CBI2 03, optionally taking a beam error and/or calibration error into account. If you want the marginalized version ( over beam error and calibration uncertainty ) of chi^2, use chi2WithCalibration() instead.

Parameters:
beamErrorAdjust add beamErrorAdjust * beamError(i) to theoretical band power(i) before calculating chi^2
calibrationFactor multiply theoretical bandpowers by this factor before comparing

Definition at line 171 of file cbi2.cc.

References bandDeselect, init(), initialized, mSavedBandDeselect, and mThband.

Referenced by chi2WithCalibration().

double CBI2::chi2WithCalibration  ) 
 

Cl's in muK^2.

returns the chi^2 w.r.t. CBI2 03, marginalized over the calibration error.

Definition at line 224 of file cbi2.cc.

References chi2().

void CBI2::init  )  [protected]
 

Definition at line 16 of file cbi2.cc.

References bandDeselect, Spline::first(), Spline::last(), mCl, mSavedBandDeselect, Spline::setY(), CL::ts, Spline::x(), and Spline::y().

Referenced by chi2().

double CBI2::windowConv int  windowNumber,
Spline Cl,
double  cut_l
[protected]
 

Definition at line 125 of file cbi2.cc.

References ControlPanel::cmbeasyDir().


Member Data Documentation

std::map<int,bool> CBI2::bandDeselect
 

All integers appearing here will be considered de-selected from the CBI2000+01 likelihood. Counting goes from 0 to 14.

Definition at line 33 of file cbi2.h.

Referenced by chi2(), and init().

bool CBI2::initialized [private]
 

Definition at line 42 of file cbi2.h.

Referenced by chi2().

const CL& CBI2::mCl [private]
 

Definition at line 40 of file cbi2.h.

Referenced by init().

std::vector<NewdatReader::Band> CBI2::mExpData [private]
 

Definition at line 44 of file cbi2.h.

NewdatReader::Matrix CBI2::mMatrix [private]
 

Definition at line 45 of file cbi2.h.

std::map<int,bool> CBI2::mSavedBandDeselect [private]
 

Definition at line 43 of file cbi2.h.

Referenced by chi2(), and init().

double CBI2::mThband[15] [private]
 

Definition at line 41 of file cbi2.h.

Referenced by chi2().


The documentation for this class was generated from the following files:
Generated on Mon May 5 17:48:34 2008 for cmbeasy by  doxygen 1.4.6