LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Pass parameters to a Statistics objectA class to pass parameters which control how the stats are calculated. More...
#include <Statistics.h>
Public Types | |
typedef boost::shared_ptr < StatisticsControl > | Ptr |
typedef boost::shared_ptr < StatisticsControl > const | ConstPtr |
Public Member Functions | |
StatisticsControl (double numSigmaClip=3.0, int numIter=3, lsst::afw::image::MaskPixel andMask=0x0, bool isNanSafe=true, int useWeights=WEIGHTS_NONE) | |
double | getNumSigmaClip () const |
int | getNumIter () const |
int | getAndMask () const |
int | getNoGoodPixelsMask () const |
bool | getNanSafe () const |
bool | getWeighted () const |
bool | getWeightedIsSet () const |
bool | getCalcErrorFromInputVariance () const |
void | setNumSigmaClip (double numSigmaClip) |
void | setNumIter (int numIter) |
void | setAndMask (int andMask) |
void | setNoGoodPixelsMask (int noGoodPixelsMask) |
void | setNanSafe (bool isNanSafe) |
void | setWeighted (bool useWeights) |
void | setCalcErrorFromInputVariance (bool calcErrorFromInputVariance) |
double | getMaskPropagationThreshold (int bit) const |
void | setMaskPropagationThreshold (int bit, double threshold) |
Private Types | |
enum | WeightsBoolean { WEIGHTS_FALSE =0, WEIGHTS_TRUE =1, WEIGHTS_NONE } |
Private Attributes | |
double | _numSigmaClip |
int | _numIter |
int | _andMask |
int | _noGoodPixelsMask |
bool | _isNanSafe |
WeightsBoolean | _useWeights |
bool | _calcErrorFromInputVariance |
std::vector< double > | _maskPropagationThresholds |
Friends | |
class | Statistics |
Pass parameters to a Statistics object
A class to pass parameters which control how the stats are calculated.
Definition at line 92 of file Statistics.h.
typedef boost::shared_ptr<StatisticsControl> const lsst.afw.math::StatisticsControl::ConstPtr |
Definition at line 97 of file Statistics.h.
typedef boost::shared_ptr<StatisticsControl> lsst.afw.math::StatisticsControl::Ptr |
Definition at line 96 of file Statistics.h.
|
private |
|
inline |
numSigmaClip | number of standard deviations to clip at |
numIter | Number of iterations |
andMask | and-Mask: defines which mask bits cause a value to be ignored |
isNanSafe | flag NaNs & Infs |
useWeights | use weighted statistics (via a vector or an inverse variance) |
Definition at line 99 of file Statistics.h.
|
inline |
Definition at line 137 of file Statistics.h.
|
inline |
Definition at line 142 of file Statistics.h.
double lsst.afw.math::StatisticsControl::getMaskPropagationThreshold | ( | int | bit | ) | const |
When pixels with the given bit are rejected, we count what fraction the rejected pixels would have contributed (including the weights, if any) if those pixels had not been rejected, and set that bit in the return value of Statistics::getOrMask() if it exceeds the given threshold.
Definition at line 691 of file Statistics.cc.
|
inline |
Definition at line 139 of file Statistics.h.
|
inline |
Definition at line 138 of file Statistics.h.
|
inline |
Definition at line 136 of file Statistics.h.
|
inline |
Definition at line 135 of file Statistics.h.
|
inline |
Definition at line 140 of file Statistics.h.
|
inline |
Definition at line 141 of file Statistics.h.
|
inline |
|
inline |
Definition at line 150 of file Statistics.h.
void lsst.afw.math::StatisticsControl::setMaskPropagationThreshold | ( | int | bit, |
double | threshold | ||
) |
When pixels with the given bit are rejected, we count what fraction the rejected pixels would have contributed (including the weights, if any) if those pixels had not been rejected, and set that bit in the return value of Statistics::getOrMask() if it exceeds the given threshold.
Definition at line 699 of file Statistics.cc.
|
inline |
|
inline |
Definition at line 147 of file Statistics.h.
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 156 of file Statistics.h.
|
private |
Definition at line 160 of file Statistics.h.
|
private |
Definition at line 164 of file Statistics.h.
|
private |
Definition at line 162 of file Statistics.h.
|
private |
Definition at line 165 of file Statistics.h.
|
private |
Definition at line 161 of file Statistics.h.
|
private |
Definition at line 159 of file Statistics.h.
|
private |
Definition at line 158 of file Statistics.h.
|
private |
Definition at line 163 of file Statistics.h.