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

PLearn::ManualBinner Class Reference

#include <ManualBinner.h>

Inheritance diagram for PLearn::ManualBinner:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef Binner inherited

Public Member Functions

 ManualBinner ()
 ManualBinner (Vec bin_positions_)
 Constructor with predefined cut points.

virtual void build ()
 Should call simply inherited::build(), then this class's build_().

virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
 Transforms a shallow copy into a deep copy.

 PLEARN_DECLARE_OBJECT (ManualBinner)
 Declares name and deepCopy methods.

virtual PP< RealMappinggetBinning (VMat v) const
 Returns a binning for a single column vmatrix v.

virtual PP< RealMappinggetBinning () const

Public Attributes

Vec bin_positions
 The supplied cut points; should be sorted in ascending order.


Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Protected Attributes

PP< RealMappingthe_mapping

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Binner PLearn::ManualBinner::inherited
 

Reimplemented from PLearn::Binner.

Definition at line 59 of file ManualBinner.h.


Constructor & Destructor Documentation

PLearn::ManualBinner::ManualBinner  ) 
 

Definition at line 45 of file ManualBinner.cc.

PLearn::ManualBinner::ManualBinner Vec  bin_positions_  ) 
 

Constructor with predefined cut points.

Definition at line 54 of file ManualBinner.cc.

References build_(), std::copy(), and PLearn::Vec.


Member Function Documentation

void PLearn::ManualBinner::build  )  [virtual]
 

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::Binner.

Definition at line 89 of file ManualBinner.cc.

References build_().

void PLearn::ManualBinner::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::Binner.

Definition at line 78 of file ManualBinner.cc.

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

Referenced by build(), and ManualBinner().

void PLearn::ManualBinner::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Binner.

Definition at line 66 of file ManualBinner.cc.

References PLearn::declareOption(), and PLearn::OptionList.

PP< RealMapping > PLearn::ManualBinner::getBinning  )  const [virtual]
 

Definition at line 115 of file ManualBinner.cc.

References the_mapping.

PP< RealMapping > PLearn::ManualBinner::getBinning VMat  v  )  const [virtual]
 

Returns a binning for a single column vmatrix v.

Reimplemented from PLearn::Binner.

Definition at line 112 of file ManualBinner.cc.

References the_mapping.

void PLearn::ManualBinner::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Binner.

Definition at line 96 of file ManualBinner.cc.

References PLERROR.

PLearn::ManualBinner::PLEARN_DECLARE_OBJECT ManualBinner   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

Vec PLearn::ManualBinner::bin_positions
 

The supplied cut points; should be sorted in ascending order.

Definition at line 66 of file ManualBinner.h.

Referenced by build_().

PP<RealMapping> PLearn::ManualBinner::the_mapping [protected]
 

Definition at line 55 of file ManualBinner.h.

Referenced by build_(), and getBinning().


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