|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
#include <KappaSigmaBinning.h>


Classes | |
| struct | Stats |
Public Member Functions | |
| KappaSigmaBinning (float kappa1=2., float kappa2=5., size_t min_pixels=4, size_t max_size=4096) | |
| template<typename Iterator> | |
| void | computeBins (Iterator begin, Iterator end) |
| ssize_t | getBinIndex (VarType value) const final |
| VarType | getEdge (size_t e) const final |
| VarType | getBin (size_t i) const final |
| Public Member Functions inherited from Euclid::Histogram::BinStrategy< VarType > | |
| BinStrategy () | |
| virtual | ~BinStrategy ()=default |
| size_t | getBinCount () const |
| virtual std::vector< VarType > | getEdges () const |
| virtual std::pair< VarType, VarType > | getBinEdges (size_t i) const |
Private Member Functions | |
| size_t | computeBinCount (size_t ndata) const |
Private Attributes | |
| VarType | m_kappa |
| VarType | m_kappa2 |
| size_t | m_min_pixels |
| size_t | m_max_size |
| VarType | m_scale |
| VarType | m_zero |
| VarType | m_const |
Additional Inherited Members | |
| Protected Attributes inherited from Euclid::Histogram::BinStrategy< VarType > | |
| size_t | m_nbins |
Functor that estimates the number of bins depending on the standard deviation of the data, applying two cuts to remain robuts to outliers.
On a first step, data that is outside \( \kappa_1 \sigma_{data} \pm \mu_{data} \) is filtered out, and the standard deviation and the mean of the remaining data points is re-computed.
The final histogram bins will cover the range \( \kappa_2 \sigma_{filtered} \pm \mu_{filtered} \). Anything outside will be dropped.
The number of bins is directly proportional to \( \kappa_2 \) and the number of data points, and limited to 4096 bins by default.
Definition at line 40 of file KappaSigmaBinning.h.
|
inline |
Constructor
| kappa1 | Number of sigmas for the first data cut |
| kappa2 | Number of sigmas for the histogram limits |
| min_pixels | Minimum number of "mode pixels" |
| max_size | Maximum number of bins |
Definition at line 53 of file KappaSigmaBinning.h.
References m_const, m_kappa, m_kappa2, m_max_size, m_min_pixels, m_scale, and m_zero.
|
inlineprivate |
Definition at line 129 of file KappaSigmaBinning.h.
References m_kappa2, m_min_pixels, std::min(), and std::sqrt().
Referenced by computeBins().

|
inline |
Get the list of bin edges for the given data points
| Iterator | Iterator type as passed to Histogram |
| begin | Beginning of the data |
| end | End of the data |
Definition at line 69 of file KappaSigmaBinning.h.
References std::begin(), computeBinCount(), std::end(), SourceXtractor::KappaSigmaBinning< VarType >::Stats::get(), m_const, m_kappa, m_kappa2, Euclid::Histogram::BinStrategy< VarType >::m_nbins, m_scale, m_zero, SourceXtractor::KappaSigmaBinning< VarType >::Stats::reset(), and std::tie().

|
inlinefinalvirtual |
Reimplemented from Euclid::Histogram::BinStrategy< VarType >.
Definition at line 119 of file KappaSigmaBinning.h.
|
inlinefinalvirtual |
Implements Euclid::Histogram::BinStrategy< VarType >.
Definition at line 111 of file KappaSigmaBinning.h.
|
inlinefinalvirtual |
Implements Euclid::Histogram::BinStrategy< VarType >.
Definition at line 115 of file KappaSigmaBinning.h.
|
private |
Definition at line 127 of file KappaSigmaBinning.h.
Referenced by computeBins(), getBinIndex(), and KappaSigmaBinning().
|
private |
Definition at line 124 of file KappaSigmaBinning.h.
Referenced by computeBins(), and KappaSigmaBinning().
|
private |
Definition at line 124 of file KappaSigmaBinning.h.
Referenced by computeBinCount(), computeBins(), and KappaSigmaBinning().
|
private |
Definition at line 125 of file KappaSigmaBinning.h.
Referenced by KappaSigmaBinning().
|
private |
Definition at line 125 of file KappaSigmaBinning.h.
Referenced by computeBinCount(), and KappaSigmaBinning().
|
private |
Definition at line 127 of file KappaSigmaBinning.h.
Referenced by computeBins(), getBin(), getBinIndex(), getEdge(), and KappaSigmaBinning().
|
private |
Definition at line 127 of file KappaSigmaBinning.h.
Referenced by computeBins(), getBin(), getEdge(), and KappaSigmaBinning().