#include <mbl_stats_nd.h>
Note: Uses unbiased estimate of variance (ie divide by (n_obs()-1))
Definition at line 15 of file mbl_stats_nd.h.
Public Member Functions | |
| mbl_stats_nd () | |
| void | clear () |
| Remove all data. | |
| void | obs (const vnl_vector< double > &v) |
| Add given observation. | |
| unsigned | n_obs () const |
| Number of observations. | |
| vnl_vector< double > | mean () const |
| Mean of current observations. | |
| vnl_vector< double > | sd () const |
| Standard deviation of current observations. | |
| vnl_vector< double > | stdError () const |
| Standard error (sd of estimate of mean) of current observations. | |
| vnl_vector< double > | variance () const |
| Variance of current observations. | |
| const vnl_vector< double > & | sum () const |
| Sum of current observations. | |
| const vnl_vector< double > & | sumSq () const |
| Sum of squares of current observations. | |
| mbl_stats_nd & | operator+= (const mbl_stats_nd &s1) |
| Add statistics together. | |
| void | print_summary (vcl_ostream &os) const |
| short | version_no () const |
| Version number for I/O. | |
| void | b_write (vsl_b_ostream &bfs) const |
| void | b_read (vsl_b_istream &bfs) |
| bool | operator== (const mbl_stats_nd &s) const |
| Test for equality. | |
Private Attributes | |
| vnl_vector< double > | sum_ |
| vnl_vector< double > | sum_sq_ |
| unsigned | n_obs_ |
Friends | |
| mbl_stats_nd | operator+ (const mbl_stats_nd &s1, const mbl_stats_nd &s2) |
|
|
Definition at line 13 of file mbl_stats_nd.cxx. |
|
|
Definition at line 134 of file mbl_stats_nd.cxx. |
|
|
Definition at line 125 of file mbl_stats_nd.cxx. |
|
|
Remove all data.
Definition at line 18 of file mbl_stats_nd.cxx. |
|
|
Mean of current observations.
Definition at line 43 of file mbl_stats_nd.cxx. |
|
|
Number of observations.
Definition at line 30 of file mbl_stats_nd.h. |
|
|
Add given observation.
Definition at line 25 of file mbl_stats_nd.cxx. |
|
|
Add statistics together.
Definition at line 100 of file mbl_stats_nd.cxx. |
|
|
Test for equality.
Definition at line 111 of file mbl_stats_nd.cxx. |
|
|
Definition at line 160 of file mbl_stats_nd.cxx. |
|
|
Standard deviation of current observations.
Definition at line 65 of file mbl_stats_nd.cxx. |
|
|
Standard error (sd of estimate of mean) of current observations.
Definition at line 82 of file mbl_stats_nd.cxx. |
|
|
Sum of current observations.
Definition at line 43 of file mbl_stats_nd.h. |
|
|
Sum of squares of current observations.
Definition at line 46 of file mbl_stats_nd.h. |
|
|
Variance of current observations.
Definition at line 49 of file mbl_stats_nd.cxx. |
|
|
Version number for I/O.
Definition at line 120 of file mbl_stats_nd.cxx. |
|
||||||||||||
|
Definition at line 183 of file mbl_stats_nd.cxx. |
|
|
Definition at line 19 of file mbl_stats_nd.h. |
|
|
Definition at line 17 of file mbl_stats_nd.h. |
|
|
Definition at line 18 of file mbl_stats_nd.h. |
1.4.4