#include <Stat2.hh>
Collaboration diagram for RazorBack::Stat2_:
Public Methods | |
Stat2_ () | |
constructor. | |
void | clear () |
clear(): clear the calling object. | |
void | add (double X, double Y) |
add(): adds a pair of values X,Y to the calling object. | |
unsigned int | data_no () const |
Returns the number of data pairs seen. | |
const Stat_& | xs () const |
xs(), ys(): return the one-stat objects for X and Y. More... | |
const Stat_& | ys () const |
double | corr () const |
corr(): returns the correlation coefficient between the X and Y points. More... | |
Private Attributes | |
Stat_ | Xs |
Stat_ | Ys |
X and Y fields. | |
double | Sxy |
mixed product sum. |
A Stat2_ object contains two Stat_ objects (Xs and Ys) plus a mixed-sum member Sxy for correlation. Data point addition is done by pairs. The one-var stats (min/max/avg, SD) are done via returning Xs or Ys and then using the appropriate Stat_ methods.
Definition at line 149 of file Stat2.hh.
|
constructor.
|
|
clear(): clear the calling object.
|
|
add(): adds a pair of values X,Y to the calling object.
|
|
Returns the number of data pairs seen.
|
|
xs(), ys(): return the one-stat objects for X and Y. Use the Stat_ methods on these to obtain avg, sd, min, max. |
|
|
|
corr(): returns the correlation coefficient between the X and Y points. Throws Statexc_ if there were no data points. Throws Sdevexc_ if the s.d. was not larger than 0.0. |
|
|
|
X and Y fields.
|
|
mixed product sum.
|