Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::StderrStatsIterator Class Reference

#include <StatsIterator.h>

Inheritance diagram for PLearn::StderrStatsIterator:

Inheritance graph
[legend]
Collaboration diagram for PLearn::StderrStatsIterator:

Collaboration graph
[legend]
List of all members.

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 (StderrStatsIterator)
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< intnsamples

Private Types

typedef StatsIterator inherited

Member Typedef Documentation

typedef StatsIterator PLearn::StderrStatsIterator::inherited [private]
 

Reimplemented from PLearn::StatsIterator.

Definition at line 186 of file StatsIterator.h.


Member Function Documentation

void PLearn::StderrStatsIterator::declareOptions OptionList ol  )  [static, protected]
 

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 310 of file StatsIterator.cc.

References PLearn::declareOption(), and PLearn::OptionList.

bool PLearn::StderrStatsIterator::finish  )  [virtual]
 

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 296 of file StatsIterator.cc.

References PLearn::TVec< T >::length(), mean, meansquared, nsamples, PLearn::sqrt(), and PLearn::squareSubtract().

virtual string PLearn::StderrStatsIterator::info  )  const [inline, virtual]
 

returns a bit more informative string about object (default returns classname())

Reimplemented from PLearn::Object.

Definition at line 194 of file StatsIterator.h.

void PLearn::StderrStatsIterator::init int  inputsize  )  [virtual]
 

Call this method once with the correct inputsize.

Implements PLearn::StatsIterator.

Definition at line 281 of file StatsIterator.cc.

References PLearn::TVec< int >::clear(), mean, meansquared, nsamples, PLearn::TVec< int >::resize(), and PLearn::Vec.

void PLearn::StderrStatsIterator::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Reimplemented from PLearn::StatsIterator.

Definition at line 274 of file StatsIterator.cc.

References PLearn::deepCopyField(), mean, and meansquared.

void PLearn::StderrStatsIterator::oldread istream &  in  )  [virtual]
 

DEPRECATED For backward compatibility with old saved object.

Reimplemented from PLearn::StatsIterator.

Definition at line 334 of file StatsIterator.cc.

References mean, meansquared, nsamples, PLearn::readField(), PLearn::readFooter(), and PLearn::readHeader().

void PLearn::StderrStatsIterator::oldwrite ostream &  out  )  const [virtual]
 

Reimplemented from PLearn::StatsIterator.

Definition at line 324 of file StatsIterator.cc.

References mean, meansquared, nsamples, PLearn::writeField(), PLearn::writeFooter(), and PLearn::writeHeader().

PLearn::StderrStatsIterator::PLEARN_DECLARE_OBJECT StderrStatsIterator   ) 
 

void PLearn::StderrStatsIterator::update const Vec input  )  [virtual]
 

Then iterate over the data set and call this method for each row.

Implements PLearn::StatsIterator.

Definition at line 291 of file StatsIterator.cc.

References PLearn::addXandX2IfNonMissing(), mean, meansquared, and nsamples.


Member Data Documentation

Vec PLearn::StderrStatsIterator::mean [protected]
 

Definition at line 190 of file StatsIterator.h.

Referenced by finish(), init(), makeDeepCopyFromShallowCopy(), oldread(), oldwrite(), and update().

Vec PLearn::StderrStatsIterator::meansquared [protected]
 

Definition at line 189 of file StatsIterator.h.

Referenced by finish(), init(), makeDeepCopyFromShallowCopy(), oldread(), oldwrite(), and update().

TVec<int> PLearn::StderrStatsIterator::nsamples [protected]
 

Definition at line 191 of file StatsIterator.h.

Referenced by finish(), init(), oldread(), oldwrite(), and update().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:59 2004 for PLearn by doxygen 1.3.7