SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::BackgroundCell Class Reference

#include <BackgroundCell.h>

Collaboration diagram for SourceXtractor::BackgroundCell:
[legend]

Public Member Functions

 BackgroundCell (const PIXTYPE *cellData, const size_t ndata, const PIXTYPE *cellWeight=NULL, const PIXTYPE weightThresh=BIG)
 
virtual ~BackgroundCell ()
 
void run ()
 
void getBackgroundValues (PIXTYPE &meanVal, PIXTYPE &sigmaVal)
 
void getBackgroundValues (PIXTYPE &meanVal, PIXTYPE &sigmaVal, PIXTYPE &whtMeanVal, PIXTYPE &whtSigmaVal)
 
void getBackgroundValuesOld (PIXTYPE &meanVal, PIXTYPE &sigmaVal)
 

Private Member Functions

void getStats (const PIXTYPE *cellData, const size_t &ndata, double &mean, double &sigma, size_t &statNData)
 
void getStatsWeight (const PIXTYPE *cellData, const size_t &ndata, const PIXTYPE *cellWeight, const PIXTYPE weightThresh, double &mean, double &sigma, size_t &statNData, double &weightMean, double &weightSigma, size_t &statNWeight)
 

Private Attributes

const PIXTYPEitsCellData
 
const PIXTYPEitsCellWeight
 
size_t itsNdata =0
 
BackgroundHistogramitsHisto = NULL
 
BackgroundHistogramitsWeightHisto = NULL
 
bool itsHasWeight =false
 
PIXTYPE itsWeightThresh =BIG
 
double itsMean =0.0
 
double itsSigma =0.0
 
double itsWeightMean =0.0
 
double itsWeightSigma =0.0
 
size_t itsStatNData =0
 
size_t itsStatNWeight =0
 

Detailed Description

Definition at line 32 of file BackgroundCell.h.

Constructor & Destructor Documentation

SourceXtractor::BackgroundCell::BackgroundCell ( const PIXTYPE cellData,
const size_t  ndata,
const PIXTYPE cellWeight = NULL,
const PIXTYPE  weightThresh = BIG 
)

Definition at line 34 of file BackgroundCell.cpp.

References getStats(), getStatsWeight(), itsCellData, itsCellWeight, itsHasWeight, itsHisto, itsMean, itsNdata, itsSigma, itsStatNData, itsStatNWeight, itsWeightHisto, itsWeightMean, itsWeightSigma, and itsWeightThresh.

Here is the call graph for this function:

SourceXtractor::BackgroundCell::~BackgroundCell ( )
virtual

Definition at line 56 of file BackgroundCell.cpp.

References itsHisto, and itsWeightHisto.

Member Function Documentation

void SourceXtractor::BackgroundCell::getBackgroundValues ( PIXTYPE meanVal,
PIXTYPE sigmaVal 
)

Definition at line 64 of file BackgroundCell.cpp.

References SourceXtractor::BackgroundHistogram::addDatum(), BIG, SourceXtractor::BackgroundHistogram::getBackGuess(), itsCellData, itsHisto, SourceXtractor::BackgroundHistogram::itsMean, itsNdata, and SourceXtractor::BackgroundHistogram::itsSigma.

Referenced by SourceXtractor::SE2BackgroundModeller::createSE2Models().

Here is the call graph for this function:

void SourceXtractor::BackgroundCell::getBackgroundValues ( PIXTYPE meanVal,
PIXTYPE sigmaVal,
PIXTYPE whtMeanVal,
PIXTYPE whtSigmaVal 
)

Definition at line 92 of file BackgroundCell.cpp.

References SourceXtractor::BackgroundHistogram::addDatum(), BIG, SourceXtractor::BackgroundHistogram::getBackGuess(), itsCellData, itsCellWeight, itsHasWeight, itsHisto, SourceXtractor::BackgroundHistogram::itsMean, itsNdata, SourceXtractor::BackgroundHistogram::itsSigma, itsWeightHisto, and itsWeightThresh.

Here is the call graph for this function:

void SourceXtractor::BackgroundCell::getBackgroundValuesOld ( PIXTYPE meanVal,
PIXTYPE sigmaVal 
)

Definition at line 147 of file BackgroundCell.cpp.

References BIG, SourceXtractor::BackgroundHistogram::getBackGuess(), itsMean, itsSigma, and itsStatNData.

Here is the call graph for this function:

void SourceXtractor::BackgroundCell::getStats ( const PIXTYPE cellData,
const size_t ndata,
double &  mean,
double &  sigma,
size_t statNData 
)
private

Definition at line 175 of file BackgroundCell.cpp.

References BACK_FKAPPA, BACK_MINGOODFRAC, BIG, and std::sqrt().

Referenced by BackgroundCell().

Here is the call graph for this function:

void SourceXtractor::BackgroundCell::getStatsWeight ( const PIXTYPE cellData,
const size_t ndata,
const PIXTYPE cellWeight,
const PIXTYPE  weightThresh,
double &  mean,
double &  sigma,
size_t statNData,
double &  weightMean,
double &  weightSigma,
size_t statNWeight 
)
private

Definition at line 245 of file BackgroundCell.cpp.

References BACK_FKAPPA, BACK_MINGOODFRAC, BIG, and std::sqrt().

Referenced by BackgroundCell().

Here is the call graph for this function:

void SourceXtractor::BackgroundCell::run ( )

Member Data Documentation

const PIXTYPE* SourceXtractor::BackgroundCell::itsCellData
private

Definition at line 49 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValues().

const PIXTYPE* SourceXtractor::BackgroundCell::itsCellWeight
private

Definition at line 50 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValues().

bool SourceXtractor::BackgroundCell::itsHasWeight =false
private

Definition at line 58 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValues().

BackgroundHistogram* SourceXtractor::BackgroundCell::itsHisto = NULL
private

Definition at line 55 of file BackgroundCell.h.

Referenced by BackgroundCell(), getBackgroundValues(), and ~BackgroundCell().

double SourceXtractor::BackgroundCell::itsMean =0.0
private

Definition at line 61 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValuesOld().

size_t SourceXtractor::BackgroundCell::itsNdata =0
private

Definition at line 53 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValues().

double SourceXtractor::BackgroundCell::itsSigma =0.0
private

Definition at line 62 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValuesOld().

size_t SourceXtractor::BackgroundCell::itsStatNData =0
private

Definition at line 65 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValuesOld().

size_t SourceXtractor::BackgroundCell::itsStatNWeight =0
private

Definition at line 66 of file BackgroundCell.h.

Referenced by BackgroundCell().

BackgroundHistogram* SourceXtractor::BackgroundCell::itsWeightHisto = NULL
private

Definition at line 56 of file BackgroundCell.h.

Referenced by BackgroundCell(), getBackgroundValues(), and ~BackgroundCell().

double SourceXtractor::BackgroundCell::itsWeightMean =0.0
private

Definition at line 63 of file BackgroundCell.h.

Referenced by BackgroundCell().

double SourceXtractor::BackgroundCell::itsWeightSigma =0.0
private

Definition at line 64 of file BackgroundCell.h.

Referenced by BackgroundCell().

PIXTYPE SourceXtractor::BackgroundCell::itsWeightThresh =BIG
private

Definition at line 59 of file BackgroundCell.h.

Referenced by BackgroundCell(), and getBackgroundValues().


The documentation for this class was generated from the following files: