![]() |
BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
One dimensional histogram.
Public Member Functions | |
| Histogram1D (const Powerfield &data) | |
| Constructor for 1D histograms from basic Powerfield object. More... | |
| Histogram1D (std::vector< IAxis * > axes, const std::vector< CumulativeValue > &data) | |
| Powerfield * | avgPowerfield () const |
| Returns new Powerfield with histogram's shape and averaged content. More... | |
| double | binContent (size_t i) const |
| Returns content (accumulated value) of bin i. More... | |
| std::vector< double > | binValues () const |
| Returns vector of bin content (the value accumulated by bins) More... | |
| Histogram1D * | clone () const override |
| Returns clone of histogram. More... | |
| const Frame & | frame () const |
| Returns Frame, which holds all axes. More... | |
| bool | hasSameShape (const IHistogram &other) const |
| Returns true if objects a) have same dimensions b) bin boundaries of axes coincide. More... | |
| bool | hasSameSizes (const IHistogram &other) const |
| Returns true if object have same rank and number of axes bins. More... | |
| PyObject * | npArray () const |
| Returns numpy array with bin content (normalized values). More... | |
| size_t | rank () const |
| Returns number of histogram dimensions. More... | |
| size_t | size () const |
| Returns total number of histogram bins. For 2D histograms the result will be the product of bin numbers along X and Y axes. More... | |
| const IAxis & | xAxis () const |
| Returns x-axis. More... | |
| const IAxis & | yAxis () const |
| Returns y-axis for 2D histograms. More... | |
Protected Member Functions | |
| std::vector< double > | flatVector () const |
| std::vector< double > | rawVector () const |
| std::vector< double > | stdvVector () const |
Protected Attributes | |
| const std::unique_ptr< const Frame > | m_frame |
| std::vector< CumulativeValue > | m_vec |
| Histogram1D::Histogram1D | ( | const Powerfield & | data | ) |
Constructor for 1D histograms from basic Powerfield object.
| Histogram1D::Histogram1D | ( | std::vector< IAxis * > | axes, |
| const std::vector< CumulativeValue > & | data | ||
| ) |
|
inherited |
Returns new Powerfield with histogram's shape and averaged content.
|
inherited |
Returns content (accumulated value) of bin i.
| std::vector<double> Histogram1D::binValues | ( | ) | const |
Returns vector of bin content (the value accumulated by bins)
|
overridevirtual |
Returns clone of histogram.
Implements IHistogram.
|
protectedinherited |
|
inherited |
Returns true if objects a) have same dimensions b) bin boundaries of axes coincide.
|
inherited |
Returns true if object have same rank and number of axes bins.
|
inherited |
Returns numpy array with bin content (normalized values).
|
inherited |
Returns number of histogram dimensions.
|
protectedinherited |
|
inherited |
Returns total number of histogram bins. For 2D histograms the result will be the product of bin numbers along X and Y axes.
|
protectedinherited |
|
inherited |
Returns x-axis.
|
inherited |
Returns y-axis for 2D histograms.
|
protectedinherited |
|
protectedinherited |