|
PLearn 0.1
|
#include <StatsIterator.h>


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 () |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual MinStatsIterator * | deepCopy (CopiesMap &copies) const |
| virtual void | oldwrite (ostream &out) const |
Static Public Member Functions | |
| static string | _classname_ () |
| static OptionList & | _getOptionList_ () |
| static RemoteMethodMap & | _getRemoteMethodMap_ () |
| static Object * | _new_instance_for_typemap_ () |
| static bool | _isa_ (const Object *o) |
| static void | _static_initialize_ () |
| static const PPath & | declaringFile () |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
| static void | declareOptions (OptionList &ol) |
| Declare options (data fields) for the class. | |
Private Types | |
| typedef StatsIterator | inherited |
Definition at line 256 of file StatsIterator.h.
typedef StatsIterator PLearn::MinStatsIterator::inherited [private] |
Reimplemented from PLearn::StatsIterator.
Definition at line 258 of file StatsIterator.h.
| string PLearn::MinStatsIterator::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::StatsIterator.
Definition at line 437 of file StatsIterator.cc.
| OptionList & PLearn::MinStatsIterator::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::StatsIterator.
Definition at line 437 of file StatsIterator.cc.
| RemoteMethodMap & PLearn::MinStatsIterator::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::StatsIterator.
Definition at line 437 of file StatsIterator.cc.
Reimplemented from PLearn::StatsIterator.
Definition at line 437 of file StatsIterator.cc.
| Object * PLearn::MinStatsIterator::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 437 of file StatsIterator.cc.
| StaticInitializer MinStatsIterator::_static_initializer_ & PLearn::MinStatsIterator::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::StatsIterator.
Definition at line 437 of file StatsIterator.cc.
| string PLearn::MinStatsIterator::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 437 of file StatsIterator.cc.
| void PLearn::MinStatsIterator::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declare options (data fields) for the class.
Redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options). Please call the inherited method AT THE END to get the options listed in a consistent order (from most recently defined to least recently defined).
static void MyDerivedClass::declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "The size of the input; it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "The learned model weights"); inherited::declareOptions(ol); }
| ol | List of options that is progressively being constructed for the current class. |
Reimplemented from PLearn::StatsIterator.
Definition at line 456 of file StatsIterator.cc.
{
inherited::declareOptions(ol);
}
| static const PPath& PLearn::MinStatsIterator::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::StatsIterator.
Definition at line 265 of file StatsIterator.h.
:
static void declareOptions(OptionList& ol);
| MinStatsIterator * PLearn::MinStatsIterator::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::StatsIterator.
Definition at line 437 of file StatsIterator.cc.
| bool PLearn::MinStatsIterator::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 453 of file StatsIterator.cc.
{ return true; }
| OptionList & PLearn::MinStatsIterator::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 437 of file StatsIterator.cc.
| OptionMap & PLearn::MinStatsIterator::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 437 of file StatsIterator.cc.
| RemoteMethodMap & PLearn::MinStatsIterator::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 437 of file StatsIterator.cc.
| virtual string PLearn::MinStatsIterator::info | ( | ) | const [inline, virtual] |
Returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object.
Definition at line 261 of file StatsIterator.h.
{ return "min"; }
| void PLearn::MinStatsIterator::init | ( | int | inputsize | ) | [virtual] |
Call this method once with the correct inputsize.
Implements PLearn::StatsIterator.
Definition at line 439 of file StatsIterator.cc.
| void PLearn::MinStatsIterator::oldwrite | ( | ostream & | out | ) | const [virtual] |
Reimplemented from PLearn::StatsIterator.
Definition at line 461 of file StatsIterator.cc.
References PLearn::write(), PLearn::writeFooter(), and PLearn::writeHeader().
{
writeHeader(out,"MinStatsIterator");
inherited::write(out);
writeFooter(out,"MinStatsIterator");
}

| void PLearn::MinStatsIterator::update | ( | const Vec & | input | ) | [virtual] |
Then iterate over the data set and call this method for each row.
Implements PLearn::StatsIterator.
Definition at line 444 of file StatsIterator.cc.
References PLearn::TVec< T >::data(), i, and PLearn::TVec< T >::length().
{
real* inputdata = input.data();
real* resultdata = result.data();
for(int i=0; i<input.length(); i++)
if(inputdata[i]<resultdata[i])
resultdata[i] = inputdata[i];
}

Reimplemented from PLearn::StatsIterator.
Definition at line 265 of file StatsIterator.h.
1.7.4