#include <StatsIterator.h>
Inheritance diagram for PLearn::StddevStatsIterator:
Public Member Functions | |
virtual string | info () const |
returns a bit more informative string about object (default returns classname()) | |
virtual void | init (int inputsize) |
Call this method once with the correct inputsize. | |
virtual void | update (const Vec &input) |
Then iterate over the data set and call this method for each row. | |
virtual bool | finish () |
PLEARN_DECLARE_OBJECT (StddevStatsIterator) | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
virtual void | oldwrite (ostream &out) const |
virtual void | oldread (istream &in) |
DEPRECATED For backward compatibility with old saved object. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) | |
Protected Attributes | |
Vec | meansquared |
Vec | mean |
TVec< int > | nsamples |
Private Types | |
typedef StatsIterator | inherited |
|
Reimplemented from PLearn::StatsIterator. Definition at line 159 of file StatsIterator.h. |
|
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); } Reimplemented from PLearn::StatsIterator. Definition at line 234 of file StatsIterator.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Call this method when all the data has been shown (through update) If the method returns false, then a further pass through the data is required. Implements PLearn::StatsIterator. Definition at line 218 of file StatsIterator.cc. References PLearn::TVec< T >::length(), PLearn::mean(), mean, meansquared, nsamples, and PLearn::sqrt(). |
|
returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object. Definition at line 167 of file StatsIterator.h. |
|
Call this method once with the correct inputsize.
Implements PLearn::StatsIterator. Definition at line 203 of file StatsIterator.cc. References PLearn::TVec< int >::clear(), mean, meansquared, nsamples, PLearn::TVec< int >::resize(), and PLearn::Vec. |
|
Reimplemented from PLearn::StatsIterator. Definition at line 196 of file StatsIterator.cc. References PLearn::deepCopyField(), mean, and meansquared. |
|
DEPRECATED For backward compatibility with old saved object.
Reimplemented from PLearn::StatsIterator. Definition at line 258 of file StatsIterator.cc. References mean, meansquared, nsamples, PLearn::readField(), PLearn::readFooter(), and PLearn::readHeader(). |
|
Reimplemented from PLearn::StatsIterator. Definition at line 248 of file StatsIterator.cc. References mean, meansquared, nsamples, PLearn::writeField(), PLearn::writeFooter(), and PLearn::writeHeader(). |
|
|
|
Then iterate over the data set and call this method for each row.
Implements PLearn::StatsIterator. Definition at line 213 of file StatsIterator.cc. References PLearn::addXandX2IfNonMissing(), mean, meansquared, and nsamples. |
|
Definition at line 163 of file StatsIterator.h. Referenced by finish(), init(), makeDeepCopyFromShallowCopy(), oldread(), oldwrite(), and update(). |
|
Definition at line 162 of file StatsIterator.h. Referenced by finish(), init(), makeDeepCopyFromShallowCopy(), oldread(), oldwrite(), and update(). |
|
Definition at line 164 of file StatsIterator.h. Referenced by finish(), init(), oldread(), oldwrite(), and update(). |