15 #ifndef BORNAGAIN_CORE_INTENSITY_CUMULATIVEVALUE_H
16 #define BORNAGAIN_CORE_INTENSITY_CUMULATIVEVALUE_H
28 void add(
double value,
double weight = 1.0);
bool operator<(const CumulativeValue &lhs, const CumulativeValue &rhs)
bool operator>(const CumulativeValue &lhs, const CumulativeValue &rhs)
The cumulative value with average and rms on-the-flight calculations.
void setContent(double value)
double getContent() const
int getNumberOfEntries() const
double getAverage() const
void add(double value, double weight=1.0)