Module pypcsim :: Class RatioBasedSpliter
[hide private]
[frames] | no frames]

Class RatioBasedSpliter

   object --+        
            |        
  ??.instance --+    
                |    
Point3DSetSpliter --+
                    |
                   RatioBasedSpliter

Help on RatioBasedSpliter [class]:
 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.

Instance Methods [hide private]
 
__init__(...)
Help on RatioBasedSpliter::RatioBasedSpliter(std::vector<double, std::allocator<double> > const & ratios) [constructor]
 
split(...)
Help on boost::shared_ptr<std::vector<boost::shared_ptr<Point3DSet>, std::allocator<boost::shared_ptr<Point3DSet> > > > Point3DSetSpliter::split(Point3DSet const & points) [member function]

Inherited from Point3DSetSpliter: setRNDEngine, unsetRNDEngine

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  __instance_size__ = 44
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

Help on RatioBasedSpliter::RatioBasedSpliter(std::vector<double, std::allocator<double> > const & ratios) [constructor]

Overrides: object.__init__

split(...)

 

Help on boost::shared_ptr<std::vector<boost::shared_ptr<Point3DSet>, std::allocator<boost::shared_ptr<Point3DSet> > > > Point3DSetSpliter::split(Point3DSet const & points) [member function]

Overrides: Point3DSetSpliter.split
(inherited documentation)