Xmipp
v3.23.11-Nereus
|
#include <histogram.h>
Public Member Functions | |
void | init (const Histogram1D &oldHistogram, const MultidimArray< int > &bins) |
Initialize class. More... | |
int | val2Index (double value) const |
Return the index corresponding to a certain value. More... | |
void | selfNormalize () |
Normalize to be a probability density function. More... | |
double | operator() (int i) const |
Get value. More... | |
const Histogram1D & | getHistogram () const |
Get histogram. More... | |
Public Attributes | |
Histogram1D | __hist |
MultidimArray< double > | __binsRightLimits |
Friends | |
std::ostream & | operator<< (std::ostream &_out, const IrregularHistogram1D &_h) |
Show. More... | |
Irregular histogram.
This class is initialized with a regular histogram and a set of bins. The class builds a new histogram in which the values within bins of the original histogram are gathered. The class provides the standard operations with histograms.
Definition at line 386 of file histogram.h.
const Histogram1D & IrregularHistogram1D::getHistogram | ( | ) | const |
void IrregularHistogram1D::init | ( | const Histogram1D & | oldHistogram, |
const MultidimArray< int > & | bins | ||
) |
Initialize class.
Definition at line 393 of file histogram.cpp.
|
inline |
void IrregularHistogram1D::selfNormalize | ( | ) |
int IrregularHistogram1D::val2Index | ( | double | value | ) | const |
Return the index corresponding to a certain value.
Definition at line 411 of file histogram.cpp.
|
friend |
MultidimArray<double> IrregularHistogram1D::__binsRightLimits |
Definition at line 390 of file histogram.h.
Histogram1D IrregularHistogram1D::__hist |
Definition at line 389 of file histogram.h.