RatioBasedSpliter Class Reference

Splits a Point3DSet into several subsets based on a probability distribution. More...

#include <RatioBasedSpliter.h>

Inheritance diagram for RatioBasedSpliter:

Inheritance graph
[legend]
Collaboration diagram for RatioBasedSpliter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RatioBasedSpliter (vector< double > const &ratios)
 New ratio based splitter with the given ratios.
virtual shared_ptr< vector
< shared_ptr< Point3DSet > > > 
split (Point3DSet const &points)
 Splits the Point3DSet into disjunct subsets.


Detailed Description

Splits a Point3DSet into several subsets based on a probability distribution.

Each subset has a probability value which specifies the probability that some random point from the set is to be assigned to this particular subset. These values can be specified by ratio values also, which will then be normalized to probabilities.

Definition at line 23 of file RatioBasedSpliter.h.


Constructor & Destructor Documentation

RatioBasedSpliter::RatioBasedSpliter ( vector< double > const &  ratios  ) 

New ratio based splitter with the given ratios.

Definition at line 20 of file RatioBasedSpliter.cpp.


Member Function Documentation

shared_ptr< vector< shared_ptr< Point3DSet > > > RatioBasedSpliter::split ( Point3DSet const &  points  )  [virtual]

Splits the Point3DSet into disjunct subsets.

Implements Point3DSetSpliter.

Definition at line 44 of file RatioBasedSpliter.cpp.

References RandomDistributionBoostImplementation< boost_dist >::get(), Point3DSetSpliter::m_rnd_eng, and Point3DSet::size().

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Wed Jul 9 16:34:52 2008 for PCSIM by  doxygen 1.5.5