#include <StatsIterator.h>
Inheritance diagram for PLearn::QuantilesStatsIterator:
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 () |
QuantilesStatsIterator () | |
QuantilesStatsIterator (Vec quantiles, int n_data=1000) | |
PLEARN_DECLARE_OBJECT (QuantilesStatsIterator) | |
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 | |
int | nsamples |
Vec | quantiles |
Array< Vec > | data |
Private Types | |
typedef StatsIterator | inherited |
Definition at line 326 of file StatsIterator.h.
|
Reimplemented from PLearn::StatsIterator. Definition at line 328 of file StatsIterator.h. |
|
Definition at line 340 of file StatsIterator.h. |
|
Definition at line 635 of file StatsIterator.cc. |
|
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 691 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 670 of file StatsIterator.cc. References data, PLearn::TMat< T >::fill(), PLearn::TVec< T >::length(), PLearn::TVec< Vec >::length(), PLearn::Mat, MISSING_VALUE, nsamples, quantiles, PLearn::sortElements(), and PLearn::TVec< T >::toMat(). |
|
returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object. Definition at line 336 of file StatsIterator.h. References quantiles, and PLearn::tostring(). |
|
Call this method once with the correct inputsize.
Implements PLearn::StatsIterator. Definition at line 640 of file StatsIterator.cc. References data, PLearn::TVec< Vec >::length(), PLearn::TVec< T >::length(), nsamples, quantiles, PLearn::TVec< Vec >::resize(), and PLearn::Vec. |
|
Reimplemented from PLearn::StatsIterator. Definition at line 628 of file StatsIterator.cc. References data, PLearn::deepCopyField(), and quantiles. |
|
DEPRECATED For backward compatibility with old saved object.
Reimplemented from PLearn::StatsIterator. Definition at line 711 of file StatsIterator.cc. References nsamples, quantiles, PLearn::readField(), PLearn::readFooter(), and PLearn::readHeader(). |
|
Reimplemented from PLearn::StatsIterator. Definition at line 702 of file StatsIterator.cc. References nsamples, quantiles, 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 654 of file StatsIterator.cc. References data, PLearn::TVec< T >::length(), PLearn::TVec< Vec >::length(), and nsamples. |
|
Definition at line 333 of file StatsIterator.h. Referenced by finish(), init(), makeDeepCopyFromShallowCopy(), and update(). |
|
Definition at line 331 of file StatsIterator.h. Referenced by finish(), init(), oldread(), oldwrite(), and update(). |
|
Definition at line 332 of file StatsIterator.h. Referenced by finish(), info(), init(), makeDeepCopyFromShallowCopy(), oldread(), and oldwrite(). |