A StatsFilter class for two-sample statistics that inherits StatsFilterBase.
Definition at line 231 of file WindowFilter.hpp.
#include <WindowFilter.hpp>

Public Member Functions | |
| void | Add (const T &x, const T &y) |
| Add data to the statistics. More... | |
| std::string | asString () const |
| return the stats as a single string More... | |
| T | Average () const |
| return the average; in 2-sample stats this is AverageY() More... | |
| T | Evaluate (T x) const |
| return the predicted Y at the given X; More... | |
| T | Intercept () const |
| return the intercept of the best-fit line Y=slope*X+intercept; More... | |
| unsigned int | N () const |
| return the sample size More... | |
| void | Reset () |
| reset, i.e. ignore earlier data and restart sampling More... | |
| T | Slope () const |
| return the slope of the best-fit line Y=slope*X+intercept; More... | |
| T | StdDev () const |
| return computed standard deviation; in 2-sample stats this is SigmaYX() More... | |
| void | Subtract (const T &x, const T &y) |
| Subtract data from the statistics. More... | |
| TwoSampleStatsFilter () | |
| constructor More... | |
| T | Variance () const |
| return computed variance; in 2-sample stats this is VarianceYX() More... | |
Public Member Functions inherited from gnsstk::StatsFilterBase< T > | |
| StatsFilterBase () | |
| constructor More... | |
Private Attributes | |
| gnsstk::TwoSampleStats< T > | TSS |
|
inline |
constructor
Definition at line 235 of file WindowFilter.hpp.
|
inlinevirtual |
Add data to the statistics.
Implements gnsstk::StatsFilterBase< T >.
Definition at line 244 of file WindowFilter.hpp.
|
inlinevirtual |
return the stats as a single string
Implements gnsstk::StatsFilterBase< T >.
Definition at line 282 of file WindowFilter.hpp.
|
inlinevirtual |
return the average; in 2-sample stats this is AverageY()
Implements gnsstk::StatsFilterBase< T >.
Definition at line 270 of file WindowFilter.hpp.
|
inlinevirtual |
return the predicted Y at the given X;
Implements gnsstk::StatsFilterBase< T >.
Definition at line 273 of file WindowFilter.hpp.
|
inlinevirtual |
return the intercept of the best-fit line Y=slope*X+intercept;
Implements gnsstk::StatsFilterBase< T >.
Definition at line 279 of file WindowFilter.hpp.
|
inlinevirtual |
return the sample size
Implements gnsstk::StatsFilterBase< T >.
Definition at line 241 of file WindowFilter.hpp.
|
inlinevirtual |
reset, i.e. ignore earlier data and restart sampling
Implements gnsstk::StatsFilterBase< T >.
Definition at line 238 of file WindowFilter.hpp.
|
inlinevirtual |
return the slope of the best-fit line Y=slope*X+intercept;
Implements gnsstk::StatsFilterBase< T >.
Definition at line 276 of file WindowFilter.hpp.
|
inlinevirtual |
return computed standard deviation; in 2-sample stats this is SigmaYX()
Implements gnsstk::StatsFilterBase< T >.
Definition at line 250 of file WindowFilter.hpp.
|
inlinevirtual |
Subtract data from the statistics.
Implements gnsstk::StatsFilterBase< T >.
Definition at line 247 of file WindowFilter.hpp.
|
inlinevirtual |
return computed variance; in 2-sample stats this is VarianceYX()
Implements gnsstk::StatsFilterBase< T >.
Definition at line 260 of file WindowFilter.hpp.
|
private |
Definition at line 285 of file WindowFilter.hpp.