Partitioner Class Reference

Inheritance diagram for Partitioner:

Inheritance graph
[legend]

List of all members.


Detailed Description

Partitions a set of weighted points into two sets for constructing a partition tree.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date

Definition at line 17 of file Partitioner.hpp.


Public Types

enum  Partition { LEFT, RIGHT }
 Partitions. More...

Public Member Functions

virtual ~Partitioner ()
 Destructor.
virtual bool init (DiracMixturePdf *p, const std::vector< unsigned int > &is)=0
 Initialise the partitioner.
virtual Partition assign (const vector &x)=0
 Assign a sample to a partition.

Member Enumeration Documentation

enum Partition

Partitions.

Enumerator:
LEFT 
RIGHT 

Definition at line 22 of file Partitioner.hpp.


Constructor & Destructor Documentation

~Partitioner (  )  [virtual]

Destructor.

Definition at line 5 of file Partitioner.cpp.


Member Function Documentation

virtual bool init ( DiracMixturePdf p,
const std::vector< unsigned int > &  is 
) [pure virtual]

Initialise the partitioner.

Parameters:
p Weighted sample set.
is Indices of components of interest in the weighted sample set.
Returns:
True if the partitioner is successful in finding a partition point, false otherwise. The partitioner may be unsuccessful if, e.g., all points are identical or one point in a pair has negligible small or zero weight.
Initialises the partitioner after construction, optionally using the given weighted sample set as a basis for the partition (e.g. using its bounds or covariance).

Implemented in DistributedPartitioner, LengthPartitioner, MedianPartitioner, RandomPartitioner, and VariancePartitioner.

virtual Partition assign ( const vector x  )  [pure virtual]

Assign a sample to a partition.

Parameters:
x The sample to assign.
Returns:
The partition to which the sample is assigned.

Implemented in DistributedPartitioner, LengthPartitioner, MedianPartitioner, RandomPartitioner, and VariancePartitioner.


Generated on Wed Dec 17 15:11:58 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3