#include <RatioBasedSpliter.h>
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. |
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.
RatioBasedSpliter::RatioBasedSpliter | ( | vector< double > const & | ratios | ) |
New ratio based splitter with the given ratios.
Definition at line 20 of file RatioBasedSpliter.cpp.
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().