|
Alexandria
2.27.0
SDC-CH common library for the Euclid project
|
#include <Sqrt.h>


Public Member Functions | |
| template<typename Iterator > | |
| void | computeBins (Iterator begin, Iterator end) |
| ssize_t | getBinIndex (VarType value) const final |
| std::pair< VarType, VarType > | getBinEdges (size_t i) const final |
| VarType | getEdge (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 VarType | getBin (size_t i) const |
Private Attributes | |
| VarType | m_start |
| VarType | m_step |
| VarType | m_end |
Additional Inherited Members | |
Protected Attributes inherited from Euclid::Histogram::BinStrategy< VarType > | |
| size_t | m_nbins |
Bin strategy that estimates the number of bins as \( \sqrt{n} \)
|
inline |
Definition at line 46 of file Sqrt.h.
References std::ceil(), Euclid::Histogram::Binning::Sqrt< VarType >::m_end, Euclid::Histogram::BinStrategy< VarType >::m_nbins, Euclid::Histogram::Binning::Sqrt< VarType >::m_start, Euclid::Histogram::Binning::Sqrt< VarType >::m_step, std::minmax_element(), and std::sqrt().

|
inlinefinalvirtual |
Get the two edges corresponding to the bin i
| i | The bin index |
Reimplemented from Euclid::Histogram::BinStrategy< VarType >.
Definition at line 60 of file Sqrt.h.
References Euclid::Histogram::Binning::Sqrt< VarType >::m_start, Euclid::Histogram::Binning::Sqrt< VarType >::m_step, and std::make_pair().

|
inlinefinalvirtual |
Get the bin index corresponding to the given value
| value | The value to map to a bin |
Implements Euclid::Histogram::BinStrategy< VarType >.
Definition at line 54 of file Sqrt.h.
References Euclid::Histogram::Binning::Sqrt< VarType >::m_end, Euclid::Histogram::BinStrategy< VarType >::m_nbins, Euclid::Histogram::Binning::Sqrt< VarType >::m_start, and Euclid::Histogram::Binning::Sqrt< VarType >::m_step.
|
inlinefinalvirtual |
Get the edge value e. Note that there are always one more edge than bins: i.e. the bin 0 has the edges (0, 1), the bin 1 the edges (1, 2), etc...
Implements Euclid::Histogram::BinStrategy< VarType >.
Definition at line 64 of file Sqrt.h.
References Euclid::Histogram::Binning::Sqrt< VarType >::m_start, and Euclid::Histogram::Binning::Sqrt< VarType >::m_step.
|
private |
Definition at line 70 of file Sqrt.h.
Referenced by Euclid::Histogram::Binning::Sqrt< VarType >::computeBins(), and Euclid::Histogram::Binning::Sqrt< VarType >::getBinIndex().
|
private |
|
private |
1.8.5