#include <vifa_incr_var.h>
Inheritance diagram for vifa_incr_var:

The vifa_incr_var class is used to accumulate the mean & variance of a data set incrementally, one data sample at a time.
Definition at line 30 of file vifa_incr_var.h.
Public Member Functions | |
| vifa_incr_var () | |
| Default constructor. | |
| vifa_incr_var (vifa_incr_var const &v) | |
| double | get_mean () const |
| Fetch the current mean. | |
| double | get_var () const |
| Fetch the current variance. | |
| int | get_n () const |
| Fetch the number of samples received so far. | |
| double | get_min () const |
| Fetch the minimum-value sample of the data set. | |
| double | get_max () const |
| Fetch the maximum-value sample of the data set. | |
| void | add_sample (double data_point) |
| Update the mean & variance measures with a new sample. | |
| void | add_sample (double data_point, double prev_factor, double curr_factor) |
| Update the mean & variance measures with a new sample. | |
| void | touch () |
| unsigned long | get_time_stamp () const |
| bool | older (vul_timestamp const &t) const |
| bool | older (vul_timestamp const *t) const |
| void | ref () |
| void | unref () |
| int | get_references () const |
| bool | is_referenced () const |
Protected Attributes | |
| double | data_mean_ |
| The current mean of the data set. | |
| double | data_var_ |
| The current variance of the data set. | |
| int | n_ |
| The number of samples in the data set. | |
| vbl_bounding_box< double, 1 > | min_max_ |
| The minimum-value and maximum-value sample of the data set. | |
| unsigned long | timestamp_ |
|
|
Default constructor.
Definition at line 47 of file vifa_incr_var.h. |
|
|
Definition at line 50 of file vifa_incr_var.h. |
|
||||||||||||||||
|
Update the mean & variance measures with a new sample.
Definition at line 6 of file vifa_incr_var.cxx. |
|
|
Update the mean & variance measures with a new sample. This method is a convenience front-end for add_sample() (see below) Definition at line 28 of file vifa_incr_var.cxx. |
|
|
Fetch the maximum-value sample of the data set.
Definition at line 68 of file vifa_incr_var.h. |
|
|
Fetch the current mean.
Definition at line 56 of file vifa_incr_var.h. |
|
|
Fetch the minimum-value sample of the data set.
Definition at line 65 of file vifa_incr_var.h. |
|
|
Fetch the number of samples received so far.
Definition at line 62 of file vifa_incr_var.h. |
|
|
Fetch the current variance.
Definition at line 59 of file vifa_incr_var.h. |
|
|
The current mean of the data set.
Definition at line 34 of file vifa_incr_var.h. |
|
|
The current variance of the data set.
Definition at line 37 of file vifa_incr_var.h. |
|
|
The minimum-value and maximum-value sample of the data set.
Definition at line 43 of file vifa_incr_var.h. |
|
|
The number of samples in the data set.
Definition at line 40 of file vifa_incr_var.h. |
1.4.4