#include <VMField.h>
Collaboration diagram for PLearn::VMFieldStat:
Public Member Functions | |
VMFieldStat (int the_maxndiscrete=255) | |
VMFieldStat *. | |
int | count () const |
should be equal to length of VMField | |
int | nmissing () const |
int | nnonmissing () const |
int | npositive () const |
int | nnegative () const |
int | nzero () const |
real | sum () const |
real | sumsquare () const |
real | min () const |
real | max () const |
real | mean () const |
real | variance () const |
real | stddev () const |
real | prob (real value) |
void | update (real val) |
void | write (ostream &out) const |
void | read (istream &in) |
Public Attributes | |
map< real, int > | counts |
counts of discrete values. | |
Protected Attributes | |
int | nmissing_ |
number of missing values | |
int | nnonmissing_ |
number of non-missing values | |
int | npositive_ |
number of values >0 | |
int | nnegative_ |
number of values <0 | |
double | sum_ |
sum of all non missing values | |
double | sumsquare_ |
sum of square of all non missing values | |
real | min_ |
minimum value | |
real | max_ |
maximum value | |
int | maxndiscrete |
maximum number of different discrete values to keep track of |
Definition at line 93 of file VMField.h.
|
VMFieldStat *.
Definition at line 101 of file VMField.cc. |
|
should be equal to length of VMField
Definition at line 116 of file VMField.h. References nmissing_, and nnonmissing_. Referenced by read(). |
|
Definition at line 125 of file VMField.h. References max_. Referenced by PLearn::CompactVMatrix::CompactVMatrix(). |
|
Definition at line 126 of file VMField.h. References nnonmissing_, and sum_. |
|
Definition at line 124 of file VMField.h. References min_. Referenced by PLearn::CompactVMatrix::CompactVMatrix(). |
|
Definition at line 117 of file VMField.h. References nmissing_. Referenced by PLearn::SparseVMatrix::SparseVMatrix(). |
|
Definition at line 120 of file VMField.h. References nnegative_. Referenced by PLearn::SparseVMatrix::SparseVMatrix(). |
|
Definition at line 118 of file VMField.h. References nnonmissing_. Referenced by prob(). |
|
Definition at line 119 of file VMField.h. References npositive_. Referenced by PLearn::SparseVMatrix::SparseVMatrix(). |
|
Definition at line 121 of file VMField.h. References nnegative_, nnonmissing_, and npositive_. |
|
Definition at line 130 of file VMField.h. References counts, nnonmissing(), and prob(). Referenced by PLearn::CompactVMatrix::perturb(), and prob(). |
|
Definition at line 158 of file VMField.cc. References count, count(), counts, k, max_, min_, nmissing_, nnegative_, nnonmissing_, npositive_, sum_, and sumsquare_. |
|
Definition at line 128 of file VMField.h. References PLearn::sqrt(), and variance(). |
|
Definition at line 122 of file VMField.h. References sum_. |
|
Definition at line 123 of file VMField.h. References sumsquare_. |
|
Definition at line 106 of file VMField.cc. References counts, PLearn::is_missing(), max_, maxndiscrete, min_, nmissing_, nnegative_, nnonmissing_, npositive_, sum_, sumsquare_, and val. |
|
Definition at line 127 of file VMField.h. References nnonmissing_, PLearn::square(), sum_, and sumsquare_. Referenced by stddev(). |
|
Definition at line 136 of file VMField.cc. References counts, max_, min_, nmissing_, nnegative_, nnonmissing_, npositive_, sum_, and sumsquare_. |
|
counts of discrete values. If the size of counts exceeds maxndiscrete maxndiscrete is set to -1, counts is erased, and we stop counting! Definition at line 112 of file VMField.h. Referenced by PLearn::CompactVMatrix::CompactVMatrix(), prob(), read(), update(), and write(). |
|
maximum value
|
|
maximum number of different discrete values to keep track of
Definition at line 106 of file VMField.h. Referenced by update(). |
|
minimum value
|
|
number of missing values
Definition at line 96 of file VMField.h. Referenced by count(), nmissing(), read(), update(), and write(). |
|
number of values <0
Definition at line 99 of file VMField.h. Referenced by nnegative(), nzero(), read(), update(), and write(). |
|
number of non-missing values
Definition at line 97 of file VMField.h. Referenced by count(), mean(), nnonmissing(), nzero(), read(), update(), variance(), and write(). |
|
number of values >0
Definition at line 98 of file VMField.h. Referenced by npositive(), nzero(), read(), update(), and write(). |
|
sum of all non missing values
Definition at line 100 of file VMField.h. Referenced by mean(), read(), sum(), update(), variance(), and write(). |
|
sum of square of all non missing values
Definition at line 101 of file VMField.h. Referenced by read(), sumsquare(), update(), variance(), and write(). |