
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. | |
| enum Partition |
| ~Partitioner | ( | ) | [virtual] |
| virtual bool init | ( | DiracMixturePdf * | p, | |
| const std::vector< unsigned int > & | is | |||
| ) | [pure virtual] |
Initialise the partitioner.
| p | Weighted sample set. | |
| is | Indices of components of interest in the weighted sample set. |
Implemented in DistributedPartitioner, LengthPartitioner, MedianPartitioner, RandomPartitioner, and VariancePartitioner.
Assign a sample to a partition.
| x | The sample to assign. |
Implemented in DistributedPartitioner, LengthPartitioner, MedianPartitioner, RandomPartitioner, and VariancePartitioner.
1.5.3