LSSTApplications
18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
|
Pass parameters to a Statistics object. More...
#include <Statistics.h>
Public Types | |
enum | WeightsBoolean { WEIGHTS_FALSE = 0, WEIGHTS_TRUE = 1, WEIGHTS_NONE } |
Public Member Functions | |
StatisticsControl (double numSigmaClip=3.0, int numIter=3, lsst::afw::image::MaskPixel andMask=0x0, bool isNanSafe=true, WeightsBoolean useWeights=WEIGHTS_NONE) | |
double | getNumSigmaClip () const noexcept |
int | getNumIter () const noexcept |
int | getAndMask () const noexcept |
int | getNoGoodPixelsMask () const noexcept |
bool | getNanSafe () const noexcept |
bool | getWeighted () const noexcept |
bool | getWeightedIsSet () const noexcept |
bool | getCalcErrorFromInputVariance () const noexcept |
void | setNumSigmaClip (double numSigmaClip) |
void | setNumIter (int numIter) |
void | setAndMask (int andMask) |
void | setNoGoodPixelsMask (int noGoodPixelsMask) |
void | setNanSafe (bool isNanSafe) noexcept |
void | setWeighted (bool useWeights) noexcept |
void | setCalcErrorFromInputVariance (bool calcErrorFromInputVariance) noexcept |
double | 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. More... | |
void | 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. More... | |
Friends | |
class | Statistics |
Pass parameters to a Statistics object.
A class to pass parameters which control how the stats are calculated.
Definition at line 93 of file Statistics.h.
|
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 97 of file Statistics.h.
|
inlinenoexcept |
Definition at line 135 of file Statistics.h.
|
inlinenoexcept |
Definition at line 140 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 727 of file Statistics.cc.
|
inlinenoexcept |
Definition at line 137 of file Statistics.h.
|
inlinenoexcept |
Definition at line 136 of file Statistics.h.
|
inlinenoexcept |
Definition at line 134 of file Statistics.h.
|
inlinenoexcept |
Definition at line 133 of file Statistics.h.
|
inlinenoexcept |
Definition at line 138 of file Statistics.h.
|
inlinenoexcept |
Definition at line 139 of file Statistics.h.
|
inline |
Definition at line 150 of file Statistics.h.
|
inlinenoexcept |
Definition at line 154 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 735 of file Statistics.cc.
|
inlinenoexcept |
Definition at line 152 of file Statistics.h.
|
inline |
Definition at line 151 of file Statistics.h.
|
inline |
Definition at line 146 of file Statistics.h.
|
inline |
Definition at line 142 of file Statistics.h.
|
inlinenoexcept |
Definition at line 153 of file Statistics.h.
|
friend |
Definition at line 159 of file Statistics.h.