15 #ifndef BORNAGAIN_CORE_INTENSITY_HISTOGRAM1D_H
16 #define BORNAGAIN_CORE_INTENSITY_HISTOGRAM1D_H
36 Histogram1D(
int nbinsx,
const std::vector<double>& xbins);
51 int fill(
double x,
double weight = 1.0);
62 #ifdef BORNAGAIN_PYTHON
Defines class IHistogram.
One dimensional histogram.
std::vector< double > getBinCenters() const
returns vector of histogram bin centers
size_t getRank() const
Returns the number of histogram dimensions.
int fill(double x, double weight=1.0)
Increment bin with abscissa x with a weight.
std::vector< double > getBinErrors() const
returns vector of bin errors
Histogram1D * crop(double xmin, double xmax)
Creates new histogram by applying crop on axis.
PyObject * getBinCentersNumpy() const
std::vector< double > getBinValues() const
returns vector of bin content (the value accumulated by bins)
Histogram1D(int nbinsx, double xlow, double xup)
Constructor for fix bin size histograms.
PyObject * getBinErrorsNumpy() const
PyObject * getBinValuesNumpy() const
Histogram1D * clone() const
Returns clone of other histogram.
Interface for one-dimensional axes.
Base class for 1D and 2D histograms holding values of double type.