PLearn 0.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | Private Member Functions
PLearn::ConditionalCDFSmoother Class Reference

#include <ConditionalCDFSmoother.h>

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

List of all members.

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 OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual ConditionalCDFSmootherdeepCopy (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 PPathdeclaringFile ()

Public Attributes

PP< HistogramDistributionprior_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.

Detailed Description

Definition at line 53 of file ConditionalCDFSmoother.h.


Member Typedef Documentation

Reimplemented from PLearn::Smoother.

Reimplemented in PLearn::ScaledConditionalCDFSmoother.

Definition at line 65 of file ConditionalCDFSmoother.h.


Constructor & Destructor Documentation

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.

    :Smoother(), prior_cdf(prior_cdf_)
{}

Member Function Documentation

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.

bool PLearn::ConditionalCDFSmoother::_isa_ ( const Object o) [static]

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

{
}

Here is the caller graph for this function:

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);
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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;
}

Member Data Documentation

Reimplemented from PLearn::Smoother.

Reimplemented in PLearn::ScaledConditionalCDFSmoother.

Definition at line 104 of file ConditionalCDFSmoother.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines