CluE
1.0
|
Data structure for partitions. More...
#include <partitionsolution.h>
Public Member Functions | |
PartitionSolution () | |
virtual | ~PartitionSolution () |
virtual double | computationtime () const |
returns the time needed for the last computation More... | |
virtual unsigned int | number_of_solutions () const |
returns the number of available solutions More... | |
virtual unsigned int | size_of_solution (unsigned int) const |
returns the size of a particular solution More... | |
virtual unsigned int | clustersize (unsigned int, unsigned int) const |
Returns the cardinality of the specified cluster from the computed clustering. More... | |
virtual T * | element (unsigned int, unsigned int, unsigned int) const |
Returns a pointer to a particular element from the specified cluster and clustering. More... | |
virtual std::vector< T * > | cluster (unsigned int, unsigned int) const |
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) const |
Returns the specified clustering as a vector of vector of pointers to the elements. More... | |
![]() | |
virtual | ~SolutionProvider () |
![]() | |
virtual | ~PartitionProvider () |
Public Attributes | |
double | seconds |
std::vector< std::vector < std::vector< T * > > > | partitions |
Additional Inherited Members | |
![]() | |
static PartitionProvider< T > * | toPartitionProvider (SolutionProvider *s) |
Does a dynamic cast of the given SolutionProvider to a PartitionProvider. More... | |
Data structure for partitions.
This struct is for use in algorithms computing partitions.
Definition at line 19 of file partitionsolution.h.
CluE::PartitionSolution< T >::PartitionSolution | ( | ) |
Definition at line 43 of file partitionsolution.h.
|
inlinevirtual |
Definition at line 26 of file partitionsolution.h.
|
virtual |
returns the time needed for the last computation
Implements CluE::SolutionProvider.
Definition at line 47 of file partitionsolution.h.
|
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().
Implements CluE::PartitionProvider< T >.
Definition at line 52 of file partitionsolution.h.
|
virtual |
returns the size of a particular solution
index | number between 0 and number_of_solutions()-1 |
Implements CluE::PartitionProvider< T >.
Definition at line 57 of file partitionsolution.h.
|
virtual |
Returns the cardinality of the specified cluster from the computed clustering.
Implements CluE::PartitionProvider< T >.
Definition at line 64 of file partitionsolution.h.
|
virtual |
Returns a pointer to a particular element from the specified cluster and clustering.
Implements CluE::PartitionProvider< T >.
Definition at line 72 of file partitionsolution.h.
|
virtual |
Returns a vector of pointers to the elements of a particular cluster from the specified clustering.
Implements CluE::PartitionProvider< T >.
Definition at line 81 of file partitionsolution.h.
|
virtual |
Returns the specified clustering as a vector of vector of pointers to the elements.
Implements CluE::PartitionProvider< T >.
Definition at line 89 of file partitionsolution.h.
double CluE::PartitionSolution< T >::seconds |
Definition at line 39 of file partitionsolution.h.
std::vector<std::vector<std::vector<T*> > > CluE::PartitionSolution< T >::partitions |
Definition at line 40 of file partitionsolution.h.