12namespace DataObjects {
41 totalApproxVariance += diff * diff;
A simple class holding some statistics on the distribution of events in a particular dimension.
coord_t totalApproxVariance
Approximate variance - used for quick std.deviation estimates.
size_t numPoints
Number of points counted (used to give the mean).
void addPoint(const coord_t x)
Add a point with the given coordinate; track the mean and variance.
coord_t getMean() const
Returns the mean position of events in this dimension.
coord_t getApproxVariance() const
Returns the approximate standard deviation of the position of events in this dimension.
coord_t total
Total dimension (summed by each event).
MDDimensionStats()
Constructor.
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...