#include <BivarStats.hpp>
Collaboration diagram for BivarStats:

Constructor does the same as clear(); use this when starting a new series of input samples.
Definition at line 50 of file BivarStats.hpp.
Public Member Functions | ||||||||||
| void | clear (void) | |||||||||
| This assumes that the accessors will check for n>0, which they do. | ||||||||||
| size_t | n (void) const | |||||||||
| Return the sample size. | ||||||||||
| T | minimumX (void) const | |||||||||
| T | maximumX (void) const | |||||||||
| T | minimumY (void) const | |||||||||
| T | maximumY (void) const | |||||||||
| T | averageX (void) const | |||||||||
| T | averageY (void) const | |||||||||
| T | varianceX (void) const | |||||||||
| T | varianceY (void) const | |||||||||
| T | stdDevX (void) const | |||||||||
| T | stdDevY (void) const | |||||||||
| 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 | |||||||||
| T | sigmaYX (void) const | |||||||||
| return conditional uncertainty = uncertainty y given x | ||||||||||
| T | eval (const T &x) const | |||||||||
| compute intercept + x * slope | ||||||||||
| BivarStats< T > & | operator+= (BivarStats< T > &S) | |||||||||
| combine two BivarStats (assumed to be taken from the same or equivalent samples) | ||||||||||
| Stats< T > | estimateDeviation (const std::vector< std::pair< T, T > > &d) const | |||||||||
Constructors. | ||||||||||
Various ways to construct a BivarStats object.
| ||||||||||
| BivarStats (bool scale=false) | ||||||||||
| BivarStats (const T &x, const T &, bool scale=false) | ||||||||||
| BivarStats (const std::vector< T > &x, const std::vector< T > &y, bool scale=false) | ||||||||||
| BivarStats (const std::vector< std::pair< T, T > > &d, bool scale=false) | ||||||||||
| BivarStats (const Vector< T > &x, const Vector< T > &y, bool scale=false) | ||||||||||
Addition Functions | ||||||||||
Add data to the statistics. | ||||||||||
| void | add (const T &x, const T &y) | |||||||||
| void | add (const std::vector< T > &x, const std::vector< T > &y) | |||||||||
| void | add (const std::vector< std::pair< T, T > > &d) | |||||||||
| void | add (const Vector< T > &x, const Vector< T > &y) | |||||||||
Subtraction Functions | ||||||||||
Subtract data from the statistics. | ||||||||||
| void | subtract (const T &x, const T &y) | |||||||||
| void | subtract (const std::vector< T > &x, const std::vector< T > &y) | |||||||||
| void | subtract (const std::vector< std::pair< T, T > > &d) | |||||||||
| void | subtract (const Vector< T > &x, const Vector< T > &y) | |||||||||
|
|
Definition at line 424 of file BivarStats.hpp. References Stats::Add(), BivarStats::eval(), and gpstk::max(). |
|
|
compute intercept + x * slope
Definition at line 114 of file BivarStats.hpp. Referenced by BivarStats::estimateDeviation(). |
1.3.9.1