|
Isis 3 Programmer Reference
|
2 #ifndef MultivariateStatistics_h
3 #define MultivariateStatistics_h
10 #include "Constants.h"
11 #include "PvlObject.h"
12 #include "SpecialPixel.h"
13 #include "Statistics.h"
61 void AddData(
const double *x,
const double *y,
62 const unsigned int count);
63 void AddData(
double x,
double y,
unsigned int count = 1);
64 void RemoveData(
const double *x,
const double *y,
65 const unsigned int count);
BigInt p_invalidPixels
The number of invalid (ignored) pixels.
BigInt p_totalPixels
The total number of pixels (invalid and valid).
This class is used to accumulate statistics on double arrays.
Contains Pvl Groups and Pvl Objects.
Isis::Statistics Y() const
Returns a Stats object for all of the Y data fed through the AddData method.
double Covariance() const
Computes and returns the covariance between the two data sets If there are no valid data (pixels) the...
BigInt ValidPixels() const
Returns the number of valid pixels processed.
Isis::Statistics p_x
A Statistics object holding x data.
~MultivariateStatistics()
Destructs a MultivariateStatistics object.
BigInt InvalidPixels() const
Returns the number of invalid pixels encountered.
double p_sumxy
The sum of x and y.
PvlObject toPvl(QString name="MultivariateStatistics") const
Serializes a multivariate statistics object as a PvlObject.
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.
Isis::Statistics X() const
Returns a Stats object for all of the X data fed through the AddData method.
Container of multivariate statistics.
long long int BigInt
Big int.
MultivariateStatistics()
Constructs a Multivariate Statistics object with accumulators and counters set to zero.
void LinearRegression(double &a, double &b) const
Fits a line.
void RemoveData(const double *x, const double *y, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
BigInt TotalPixels() const
Returns the total number of pixels processed.
double Correlation() const
Computes and returns the coefficient of correlation (between -1.0 and 1.0) of the two data sets.
Isis::Statistics p_y
A Statistics object holding y data.
void Reset()
Resets all accumulators to zero.
BigInt p_validPixels
The number of valid (computed) pixels.
This is free and unencumbered software released into the public domain.
double SumXY() const
Returns the sum of x*y for all data given through the AddData method.