USGS

Isis 3.0 Object Programmers' Reference

Home

MultivariateStatistics.h
Go to the documentation of this file.
1 
24 #ifndef MultivariateStatistics_h
25 #define MultivariateStatistics_h
26 
27 #include "Statistics.h"
28 #include "SpecialPixel.h"
29 #include "Constants.h"
30 
31 namespace Isis {
66  public:
69 
70  void Reset();
71  void AddData(const double *x, const double *y,
72  const unsigned int count);
73  void AddData(double x, double y, unsigned int count = 1);
74  void RemoveData(const double *x, const double *y,
75  const unsigned int count);
76 
77  Isis::Statistics X() const;
78  Isis::Statistics Y() const;
79  double SumXY() const;
80  double Covariance() const;
81  double Correlation() const;
82 
83  void LinearRegression(double &a, double &b) const;
84 
85  BigInt ValidPixels() const;
86  BigInt InvalidPixels() const;
87  BigInt TotalPixels() const;
88 
89  private:
94 
96  double p_sumxy;
112  };
113 };
114 
115 #endif