#include <Stats.hpp>
Inheritance diagram for TwoSampleStats:


Constructor does the same as Reset(); use this when starting a new series of input samples. Results are available at any time by calling N(), Minimum(), Maximum(), Average(), Variance() and StdDev(). NB. Variance is normalized with 1/(N-1) and StdDev is sqrt(Variance). NB. This class may not give exactly correct results with non-floating types, (for which it is not intended).
Definition at line 286 of file Stats.hpp.
Public Member Functions | |
| TwoSampleStats () | |
| constructor | |
| TwoSampleStats (Vector< T > &X, Vector< T > &Y) | |
| constructor given two Vector of data | |
| void | Add (const T &X, const T &Y) |
| Add data to the statistics. | |
| void | Add (const Vector< T > &X, const Vector< T > &Y) |
| Add two Vectors of data to the statistics. | |
| void | Subtract (const T &X, const T &Y) |
| void | Subtract (const Vector< T > &X, const Vector< T > &Y) |
| void | Reset (void) |
| reset, i.e. ignore earlier data and restart sampling | |
| unsigned int | N (void) const |
| return the sample size | |
| T | MinimumX (void) const |
| return minimum X value | |
| T | MaximumX (void) const |
| return maximum X value | |
| T | MinimumY (void) const |
| return minimum Y value | |
| T | MaximumY (void) const |
| return maximum Y value | |
| T | AverageX (void) const |
| return computed X average | |
| T | AverageY (void) const |
| return computed Y average | |
| T | VarianceX (void) const |
| return computed X variance | |
| T | VarianceY (void) const |
| return computed Y variance | |
| T | StdDevX (void) const |
| return computed X standard deviation | |
| T | StdDevY (void) const |
| return computed Y standard deviation | |
| T | Slope (void) const |
| return slope of best-fit line Y=slope*X + intercept | |
| T | Intercept (void) const |
| return intercept of best-fit line Y=slope*X + intercept | |
| T | SigmaSlope (void) const |
| return uncertainty in slope | |
| T | Correlation (void) const |
| return correlation | |
| T | SigmaYX (void) const |
| return conditional uncertainty = uncertainty y given x | |
| TwoSampleStats< T > & | operator+= (TwoSampleStats< T > &S) |
| combine two TwoSampleStats (assumed to be taken from the same or equivalent samples) NB. | |
|
|
constructor
|
|
||||||||||||
|
constructor given two Vector of data
|
|
||||||||||||
|
Add two Vectors of data to the statistics.
|
|
||||||||||||
|
Add data to the statistics.
Definition at line 300 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and PolyTest(). |
|
|
return computed X average
Definition at line 370 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return computed Y average
Definition at line 374 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return correlation
Definition at line 425 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return intercept of best-fit line Y=slope*X + intercept
Definition at line 407 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and gpstk::operator<<(). |
|
|
return maximum X value
Definition at line 363 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return maximum Y value
Definition at line 367 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return minimum X value
Definition at line 361 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return minimum Y value
Definition at line 365 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return the sample size
Definition at line 359 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and gpstk::operator<<(). |
|
|
combine two TwoSampleStats (assumed to be taken from the same or equivalent samples) NB. Beware using this with very small sample size. |
|
|
reset, i.e. ignore earlier data and restart sampling
Definition at line 356 of file Stats.hpp. Referenced by PolyTest(), and LinearClockModel::reset(). |
|
|
return uncertainty in slope
Definition at line 416 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and gpstk::operator<<(). |
|
|
return conditional uncertainty = uncertainty y given x
Definition at line 437 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return slope of best-fit line Y=slope*X + intercept
Definition at line 398 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and gpstk::operator<<(). |
|
|
return computed X standard deviation
Definition at line 392 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and gpstk::operator<<(). |
|
|
return computed Y standard deviation
Definition at line 395 of file Stats.hpp. Referenced by GloFreqIndex::addPass(), and gpstk::operator<<(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
return computed X variance
Definition at line 378 of file Stats.hpp. Referenced by gpstk::operator<<(). |
|
|
return computed Y variance
Definition at line 385 of file Stats.hpp. Referenced by gpstk::operator<<(). |
1.3.9.1