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

PLearn::MaxStatsIterator Class Reference

#include <StatsIterator.h>

Inheritance diagram for PLearn::MaxStatsIterator:

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

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 (MaxStatsIterator)
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)


Private Types

typedef StatsIterator inherited

Member Typedef Documentation

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

Reimplemented from PLearn::StatsIterator.

Definition at line 267 of file StatsIterator.h.


Member Function Documentation

void PLearn::MaxStatsIterator::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 488 of file StatsIterator.cc.

References PLearn::OptionList.

bool PLearn::MaxStatsIterator::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 485 of file StatsIterator.cc.

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

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

Reimplemented from PLearn::Object.

Definition at line 270 of file StatsIterator.h.

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

Call this method once with the correct inputsize.

Implements PLearn::StatsIterator.

Definition at line 469 of file StatsIterator.cc.

References PLearn::Vec.

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

DEPRECATED For backward compatibility with old saved object.

Reimplemented from PLearn::StatsIterator.

Definition at line 500 of file StatsIterator.cc.

References PLearn::readFooter(), and PLearn::readHeader().

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

Reimplemented from PLearn::StatsIterator.

Definition at line 493 of file StatsIterator.cc.

References PLearn::writeFooter(), and PLearn::writeHeader().

PLearn::MaxStatsIterator::PLEARN_DECLARE_OBJECT MaxStatsIterator   ) 
 

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

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

Implements PLearn::StatsIterator.

Definition at line 476 of file StatsIterator.cc.

References PLearn::TVec< T >::data(), and PLearn::TVec< T >::length().


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