template<class T>
class gnsstk::WtdStats< T >
Weighted conventional statistics for one sample. Derived from SeqStats<T> Weights must not be zero; zero weight causes the sample to be ignored.
Definition at line 620 of file Stats.hpp.
|
void | Add (const T &x, const T &wt_in) |
|
void | Add (std::vector< T > &X, std::vector< T > &W) |
| add a std::vector<T> of samples, with weights More...
|
|
void | Add (Vector< T > &X, Vector< T > &W) |
| add a gnsstk::Vector<T> of samples, with weights More...
|
|
std::string | asShortString (std::string msg=std::string(), int w=0, int p=3) const |
| Write WtdStats N,ave,sig to a short single-line string. More...
|
|
std::string | asString (std::string msg=std::string(), int w=7, int p=4) const |
| Write WtdStats to a single-line string. More...
|
|
void | Dump (std::vector< unsigned int > &vuint, std::vector< T > &vT) |
|
void | Load (std::vector< unsigned int > &vuint, std::vector< T > &vT) |
|
WtdStats< T > & | operator+= (const WtdStats< T > &S) |
| combine two WtdStats (assumed taken from the same or equivalent ensembles); More...
|
|
WtdStats< T > & | operator-= (const WtdStats< T > &S) |
|
void | Subtract (const T &x, const T &wt_in) |
|
void | Subtract (std::vector< T > &X, std::vector< T > &W) |
|
void | Subtract (Vector< T > &X, Vector< T > &W) |
|
| WtdStats () |
| constructor More...
|
|
| WtdStats (Vector< T > &X, Vector< T > &W) |
| constructor given a gnsstk::Vector<T> of data, with weights More...
|
|
T | WtsSum (void) const |
| return normalization = sum of weights More...
|
|
void | Add (const T &x) |
|
void | Add (std::vector< T > &X) |
| add a std::vector<T> of samples to the computation of statistics More...
|
|
void | Add (Vector< T > &X) |
| add a gnsstk::Vector<T> of samples to the computation of statistics More...
|
|
std::string | asShortString (std::string msg=std::string(), int w=0, int p=3) const |
| Write SeqStats N,ave,sig to a short single-line string. More...
|
|
std::string | asString (std::string msg=std::string(), int w=7, int p=4) const |
| Write SeqStats to a single-line string. More...
|
|
T | Average (void) const |
| return computed average More...
|
|
void | Dump (std::vector< unsigned int > &vuint, std::vector< T > &vT) |
|
void | Load (const std::vector< unsigned int > &vuint, const std::vector< T > &vT) |
|
T | Maximum (void) const |
| return maximum value More...
|
|
T | Minimum (void) const |
| return minimum value More...
|
|
unsigned int | N (void) const |
| return the sample size More...
|
|
SeqStats< T > & | operator+= (const SeqStats< T > &S) |
| combine two SeqStats (assumed taken from the same or equivalent ensembles); More...
|
|
SeqStats< T > & | operator-= (const SeqStats< T > &S) |
|
void | Reset (void) |
| reset, i.e. ignore earlier data and restart sampling More...
|
|
| SeqStats () |
| constructor More...
|
|
| SeqStats (Vector< T > &X) |
| constructor given a gnsstk::Vector<T> of data More...
|
|
T | StdDev (void) const |
| return computed standard deviation More...
|
|
void | Subtract (const T x) |
|
void | Subtract (std::vector< T > &X) |
|
void | Subtract (Vector< T > &X) |
|
T | Variance (void) const |
| return computed variance More...
|
|