PLearn 0.1
|
#include <ConditionalCDFSmoother.h>
Public Types | |
typedef Smoother | inherited |
Public Member Functions | |
ConditionalCDFSmoother () | |
ConditionalCDFSmoother (PP< HistogramDistribution > &prior_cdf_) | |
virtual void | build () |
Post-constructor. | |
virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
Transforms a shallow copy into a deep copy. | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual ConditionalCDFSmoother * | deepCopy (CopiesMap &copies) const |
virtual real | smooth (const Vec &source_function, Vec &smoothed_function, Vec bin_positions=Vec(), Vec dest_bin_positions=Vec()) const |
Static Public Member Functions | |
static string | _classname_ () |
Declares name and deepCopy methods. | |
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 () |
Public Attributes | |
PP< HistogramDistribution > | prior_cdf |
Static Public Attributes | |
static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
static void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 53 of file ConditionalCDFSmoother.h.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 65 of file ConditionalCDFSmoother.h.
PLearn::ConditionalCDFSmoother::ConditionalCDFSmoother | ( | ) |
Definition at line 50 of file ConditionalCDFSmoother.cc.
{}
PLearn::ConditionalCDFSmoother::ConditionalCDFSmoother | ( | PP< HistogramDistribution > & | prior_cdf_ | ) |
Definition at line 52 of file ConditionalCDFSmoother.cc.
string PLearn::ConditionalCDFSmoother::_classname_ | ( | ) | [static] |
Declares name and deepCopy methods.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
OptionList & PLearn::ConditionalCDFSmoother::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
RemoteMethodMap & PLearn::ConditionalCDFSmoother::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
Object * PLearn::ConditionalCDFSmoother::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
StaticInitializer ConditionalCDFSmoother::_static_initializer_ & PLearn::ConditionalCDFSmoother::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
void PLearn::ConditionalCDFSmoother::build | ( | ) | [virtual] |
Post-constructor.
The normal implementation should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 77 of file ConditionalCDFSmoother.cc.
References PLearn::Smoother::build(), and build_().
Referenced by PLearn::ScaledConditionalCDFSmoother::build().
{ inherited::build(); build_(); }
void PLearn::ConditionalCDFSmoother::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 73 of file ConditionalCDFSmoother.cc.
Referenced by build().
{ }
string PLearn::ConditionalCDFSmoother::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
void PLearn::ConditionalCDFSmoother::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 64 of file ConditionalCDFSmoother.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::Smoother::declareOptions(), and prior_cdf.
Referenced by PLearn::ScaledConditionalCDFSmoother::declareOptions().
{ declareOption(ol, "prior_cdf", &ConditionalCDFSmoother::prior_cdf, OptionBase::buildoption, "Prior CDF used to smooth other functions"); // Now call the parent class' declareOptions inherited::declareOptions(ol); }
static const PPath& PLearn::ConditionalCDFSmoother::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 104 of file ConditionalCDFSmoother.h.
:
// The source function is either f(i) = source_function[i] as a function of i
ConditionalCDFSmoother * PLearn::ConditionalCDFSmoother::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
OptionList & PLearn::ConditionalCDFSmoother::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
OptionMap & PLearn::ConditionalCDFSmoother::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
RemoteMethodMap & PLearn::ConditionalCDFSmoother::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 62 of file ConditionalCDFSmoother.cc.
void PLearn::ConditionalCDFSmoother::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 83 of file ConditionalCDFSmoother.cc.
References PLearn::deepCopyField(), PLearn::Smoother::makeDeepCopyFromShallowCopy(), and prior_cdf.
Referenced by PLearn::ScaledConditionalCDFSmoother::makeDeepCopyFromShallowCopy().
{ inherited::makeDeepCopyFromShallowCopy(copies); deepCopyField(prior_cdf, copies); }
real PLearn::ConditionalCDFSmoother::smooth | ( | const Vec & | source_function, |
Vec & | smoothed_function, | ||
Vec | bin_positions = Vec() , |
||
Vec | dest_bin_positions = Vec() |
||
) | const [virtual] |
Implements PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 89 of file ConditionalCDFSmoother.cc.
References PLERROR.
{ PLERROR("smooth not implemented for ConditionalCDFSmoother."); return 0.0; }
Reimplemented from PLearn::Smoother.
Reimplemented in PLearn::ScaledConditionalCDFSmoother.
Definition at line 104 of file ConditionalCDFSmoother.h.
Definition at line 71 of file ConditionalCDFSmoother.h.
Referenced by declareOptions(), makeDeepCopyFromShallowCopy(), and PLearn::ScaledConditionalCDFSmoother::smooth().