24 #ifndef MultivariateStatistics_h
25 #define MultivariateStatistics_h
78 void AddData(
const double *x,
const double *y,
79 const unsigned int count);
80 void AddData(
double x,
double y,
unsigned int count = 1);
81 void RemoveData(
const double *x,
const double *y,
82 const unsigned int count);
BigInt p_invalidPixels
The number of invalid (ignored) pixels.
double p_sumxy
The sum of x and y.
double Correlation() const
Computes and returns the coefficient of correlation (between -1.0 and 1.0) of the two data sets...
~MultivariateStatistics()
Destructs a MultivariateStatistics object.
MultivariateStatistics()
Constructs a Multivariate Statistics object with accumulators and counters set to zero...
void LinearRegression(double &a, double &b) const
Fits a line through the data.
double SumXY() const
Returns the sum of x*y for all data given through the AddData method.
Isis::Statistics p_x
A Statistics object holding x data.
This class is used to accumulate statistics on double arrays.
Container of multivariate statistics.
BigInt p_totalPixels
The total number of pixels (invalid and valid).
Isis::Statistics p_y
A Statistics object holding y data.
double Covariance() const
Computes and returns the covariance between the two data sets If there are no valid data (pixels) the...
PvlObject toPvl(QString name="MultivariateStatistics") const
Serializes a multivariate statistics object as a PvlObject.
BigInt InvalidPixels() const
Returns the number of invalid pixels encountered.
BigInt p_validPixels
The number of valid (computed) pixels.
Isis::Statistics X() const
Returns a Stats object for all of the X data fed through the AddData method.
BigInt TotalPixels() const
Returns the total number of pixels processed.
Isis::Statistics Y() const
Returns a Stats object for all of the Y data fed through the AddData method.
void RemoveData(const double *x, const double *y, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
void Reset()
Resets all accumulators to zero.
void fromPvl(const PvlObject &inStats)
Unserializes a multivariate statistics object from a PvlObject.
void AddData(const double *x, const double *y, const unsigned int count)
Add two arrays of doubles to the accumulators and counters.
BigInt ValidPixels() const
Returns the number of valid pixels processed.
Contains Pvl Groups and Pvl Objects.