CluE
1.0
|
Abstract base class to access results of partition based clustering algorithms. More...
#include <partitionprovider.h>
Public Member Functions | |
virtual | ~PartitionProvider () |
virtual unsigned int | number_of_solutions () const =0 |
returns the number of available solutions More... | |
virtual unsigned int | size_of_solution (unsigned int index) const =0 |
returns the size of a particular solution More... | |
virtual unsigned int | clustersize (unsigned int solutionIndex, unsigned int partitionIndex) const =0 |
Returns the cardinality of the specified cluster from the computed clustering. More... | |
virtual T * | element (unsigned int solutionIndex, unsigned int partitionIndex, unsigned int elementIndex) const =0 |
Returns a pointer to a particular element from the specified cluster and clustering. More... | |
virtual std::vector< T * > | cluster (unsigned int solutionIndex, unsigned int partitionIndex) const =0 |
Returns a vector of pointers to the elements of a particular cluster from the specified clustering. More... | |
virtual std::vector < std::vector< T * > > | clustering (unsigned int solutionIndex) const =0 |
Returns the specified clustering as a vector of vector of pointers to the elements. More... | |
Static Public Member Functions | |
static PartitionProvider< T > * | toPartitionProvider (SolutionProvider *s) |
Does a dynamic cast of the given SolutionProvider to a PartitionProvider. More... | |
Abstract base class to access results of partition based clustering algorithms.
Definition at line 16 of file partitionprovider.h.
|
inlinevirtual |
Definition at line 20 of file partitionprovider.h.
|
pure virtual |
returns the number of available solutions
The algorthm may compute more than one solution of possibly different size, where size means number of computed clusters, proxies (e.g. cluster centers) or the size of a coreset. The sizes can be retrieved by a call to size_of_solution().
Implemented in CluE::DiscreteDoubleSolution< T >, CluE::DoubleSolution< T >, and CluE::PartitionSolution< T >.
|
pure virtual |
returns the size of a particular solution
index | number between 0 and number_of_solutions()-1 |
Implemented in CluE::DiscreteDoubleSolution< T >, CluE::DoubleSolution< T >, and CluE::PartitionSolution< T >.
|
pure virtual |
Returns the cardinality of the specified cluster from the computed clustering.
Implemented in CluE::DiscreteDoubleSolution< T >, CluE::DoubleSolution< T >, and CluE::PartitionSolution< T >.
|
pure virtual |
Returns a pointer to a particular element from the specified cluster and clustering.
Implemented in CluE::DiscreteDoubleSolution< T >, CluE::DoubleSolution< T >, and CluE::PartitionSolution< T >.
|
pure virtual |
Returns a vector of pointers to the elements of a particular cluster from the specified clustering.
Implemented in CluE::DiscreteDoubleSolution< T >, CluE::DoubleSolution< T >, and CluE::PartitionSolution< T >.
|
pure virtual |
Returns the specified clustering as a vector of vector of pointers to the elements.
Implemented in CluE::DiscreteDoubleSolution< T >, CluE::DoubleSolution< T >, and CluE::PartitionSolution< T >.
|
inlinestatic |
Does a dynamic cast of the given SolutionProvider to a PartitionProvider.
Definition at line 66 of file partitionprovider.h.