#include <SDBWithStats.h>
Collaboration diagram for PLearn::FieldStat:
Public Member Functions | |
int | nsymbols () |
FieldStat () | |
int | ntotal () const |
int | missing () const |
int | nonmissing () const |
real | mean () const |
real | stddev () const |
real | min () const |
real | max () const |
void | updateString (const string &sym) |
void | updateNumber (double d) |
void | updateMissing () |
void | clear () |
clear everything | |
void | finalize () |
computes final mean and stddev | |
Public Attributes | |
map< string, int > | symbolcount |
For symbolic values. | |
map< string, int > | symbolid |
an int between 1 and nsymbols associated to each symbol | |
Static Public Attributes | |
int | max_nsymbols = 400 |
stop remembering symbols above this number... | |
Protected Attributes | |
int | nonmissing_ |
number of entries with non missing value | |
int | missing_ |
number of entries with missing value | |
double | sum_ |
For numeric values:. | |
double | sumsquare_ |
double | min_ |
double | max_ |
double | mean_ |
double | stddev_ |
|
Definition at line 85 of file SDBWithStats.h. References max_, min_, missing_, nonmissing_, sum_, and sumsquare_. |
|
clear everything
Definition at line 72 of file SDBWithStats.cc. References max_, mean_, min_, missing_, nonmissing_, stddev_, sum_, sumsquare_, symbolcount, and symbolid. Referenced by PLearn::SDBWithStats::forgetStats(). |
|
computes final mean and stddev
Definition at line 86 of file SDBWithStats.cc. References max_nsymbols, mean_, nonmissing_, nsymbols(), PLearn::sqrt(), PLearn::square(), stddev_, sum_, sumsquare_, symbolcount, and symbolid. |
|
Definition at line 96 of file SDBWithStats.h. References max_. Referenced by PLearn::SDBWithStats::saveStats(). |
|
Definition at line 93 of file SDBWithStats.h. References mean_. Referenced by PLearn::SDBVMFieldNormalize::convertField(), and PLearn::SDBWithStats::saveStats(). |
|
Definition at line 95 of file SDBWithStats.h. References min_. Referenced by PLearn::SDBWithStats::saveStats(). |
|
Definition at line 91 of file SDBWithStats.h. References missing_. Referenced by PLearn::SDBWithStats::saveStats(). |
|
Definition at line 92 of file SDBWithStats.h. References nonmissing_. Referenced by PLearn::SDBWithStats::saveStats(). |
|
Definition at line 82 of file SDBWithStats.h. References symbolcount. Referenced by finalize(), PLearn::SDBWithStats::saveStats(), updateNumber(), and updateString(). |
|
Definition at line 90 of file SDBWithStats.h. References missing_, and nonmissing_. |
|
Definition at line 94 of file SDBWithStats.h. References stddev_. Referenced by PLearn::SDBVMFieldDivSigma::convertField(), PLearn::SDBVMFieldNormalize::convertField(), and PLearn::SDBWithStats::saveStats(). |
|
Definition at line 100 of file SDBWithStats.h. References missing_. |
|
Definition at line 59 of file SDBWithStats.cc. References max_, max_nsymbols, min_, nonmissing_, nsymbols(), sum_, sumsquare_, symbolcount, and PLearn::tostring(). |
|
Definition at line 52 of file SDBWithStats.cc. References max_nsymbols, nonmissing_, nsymbols(), and symbolcount. |
|
Definition at line 73 of file SDBWithStats.h. Referenced by clear(), FieldStat(), PLearn::SDBWithStats::loadStats(), max(), and updateNumber(). |
|
stop remembering symbols above this number...
Definition at line 50 of file SDBWithStats.cc. Referenced by finalize(), updateNumber(), and updateString(). |
|
Definition at line 74 of file SDBWithStats.h. Referenced by clear(), finalize(), PLearn::SDBWithStats::loadStats(), and mean(). |
|
Definition at line 72 of file SDBWithStats.h. Referenced by clear(), FieldStat(), PLearn::SDBWithStats::loadStats(), min(), and updateNumber(). |
|
number of entries with missing value
Definition at line 66 of file SDBWithStats.h. Referenced by clear(), FieldStat(), PLearn::SDBWithStats::loadStats(), missing(), ntotal(), and updateMissing(). |
|
number of entries with non missing value
Definition at line 65 of file SDBWithStats.h. Referenced by clear(), FieldStat(), finalize(), PLearn::SDBWithStats::loadStats(), nonmissing(), ntotal(), updateNumber(), and updateString(). |
|
Definition at line 75 of file SDBWithStats.h. Referenced by clear(), finalize(), PLearn::SDBWithStats::loadStats(), and stddev(). |
|
For numeric values:.
Definition at line 69 of file SDBWithStats.h. Referenced by clear(), FieldStat(), finalize(), and updateNumber(). |
|
Definition at line 70 of file SDBWithStats.h. Referenced by clear(), FieldStat(), finalize(), and updateNumber(). |
|
For symbolic values.
Definition at line 80 of file SDBWithStats.h. Referenced by clear(), finalize(), PLearn::SDBWithStats::loadStats(), nsymbols(), PLearn::SDBWithStats::saveStats(), updateNumber(), and updateString(). |
|
an int between 1 and nsymbols associated to each symbol
Definition at line 81 of file SDBWithStats.h. Referenced by clear(), finalize(), PLearn::SDBWithStats::loadStats(), PLearn::SDBVMFieldRemapReals::SDBVMFieldRemapReals(), and PLearn::SDBVMFieldRemapStrings::SDBVMFieldRemapStrings(). |