PartitionTree Class Reference

Inheritance diagram for PartitionTree:

Inheritance graph
[legend]

List of all members.


Detailed Description

Abstract spatial partition tree.

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

Serialization

This class supports serialization through the Boost.Serialization library.

Definition at line 24 of file PartitionTree.hpp.


Public Member Functions

 PartitionTree ()
 Default constructor.
 PartitionTree (DiracMixturePdf *p)
 Constructor.
virtual ~PartitionTree ()
 Destructor.
virtual PartitionTreeclone ()=0
 Clone tree.
DiracMixturePdfgetData ()
 Get the underlying weighted sample set.
virtual
PartitionTreeNode
getRoot ()=0
 Get the root node of the partition tree.
void setData (DiracMixturePdf *p)
 Set the underlying weighted sample set.
virtual void setRoot (PartitionTreeNode *root)=0
 Set the root node of the partition tree.

Constructor & Destructor Documentation

PartitionTree (  ) 

Default constructor.

This should generally only be used when the object is to be restored from a serialization.

Definition at line 7 of file PartitionTree.cpp.

PartitionTree ( DiracMixturePdf p  ) 

Constructor.

Parameters:
p Weighted sample set from which to build the tree.

Definition at line 11 of file PartitionTree.cpp.

~PartitionTree (  )  [virtual]

Destructor.

Definition at line 15 of file PartitionTree.cpp.


Member Function Documentation

virtual PartitionTree* clone (  )  [pure virtual]

Clone tree.

Returns:
Clone of tree. Caller has ownership.

Implemented in KDTree.

indii::ml::aux::DiracMixturePdf * getData (  )  [inline]

Get the underlying weighted sample set.

Returns:
The underlying weighted sample set.

Definition at line 119 of file PartitionTree.hpp.

virtual PartitionTreeNode* getRoot (  )  [pure virtual]

Get the root node of the partition tree.

Returns:
Root node of the partition tree.

Implemented in KDTree.

void setData ( DiracMixturePdf p  ) 

Set the underlying weighted sample set.

Parameters:
p The underlying weighted sample set.
The new set should have the same number of components as the existing set.

Definition at line 19 of file PartitionTree.cpp.

virtual void setRoot ( PartitionTreeNode root  )  [pure virtual]

Set the root node of the partition tree.

Parameters:
root Root node of the partition tree.
Care should be taken that the index of the greatest component in the subtree root is not greater than the number of components in the weighted sample set underlying the tree. This is not checked.

Implemented in KDTree.


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