CluE
1.0
|
Data structure for partitions and proxies. More...
#include <doublesolution.h>
Public Member Functions | |
DoubleSolution () | |
virtual | ~DoubleSolution () |
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 T | proxy (unsigned int n, unsigned int c) const |
returns the proxy for the specified clustering and cluster More... | |
virtual std::vector< T > | proxies (unsigned int n) const |
returns the proxies for the specified clustering 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 | ~ProxyProvider () |
![]() | |
virtual | ~PartitionProvider () |
Public Attributes | |
double | seconds |
std::vector< std::vector< T > > | proxysets |
std::vector< std::vector < std::vector< T * > > > | partitions |
Additional Inherited Members | |
![]() | |
static ProxyProvider< T > * | toProxyProvider (SolutionProvider *s) |
does a dynamic cast of the given SolutionProvider to a ProxyProvider More... | |
![]() | |
static PartitionProvider< T > * | toPartitionProvider (SolutionProvider *s) |
Does a dynamic cast of the given SolutionProvider to a PartitionProvider. More... | |
Data structure for partitions and proxies.
This struct is for use in algorithms computing proxies.
Definition at line 22 of file doublesolution.h.
CluE::DoubleSolution< T >::DoubleSolution | ( | ) |
Definition at line 49 of file doublesolution.h.
|
inlinevirtual |
Definition at line 28 of file doublesolution.h.
|
virtual |
returns the time needed for the last computation
Implements CluE::SolutionProvider.
Definition at line 53 of file doublesolution.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 58 of file doublesolution.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 65 of file doublesolution.h.
|
virtual |
returns the proxy for the specified clustering and cluster
Returns the computed proxy for cluster number proxyIndex in clustering number solutionIndex.
Implements CluE::ProxyProvider< T >.
Definition at line 76 of file doublesolution.h.
|
virtual |
returns the proxies for the specified clustering
Returns the computed proxies for clustering number solutionIndex.
Implements CluE::ProxyProvider< T >.
Definition at line 87 of file doublesolution.h.
|
virtual |
Returns the cardinality of the specified cluster from the computed clustering.
Implements CluE::PartitionProvider< T >.
Definition at line 94 of file doublesolution.h.
|
virtual |
Returns a pointer to a particular element from the specified cluster and clustering.
Implements CluE::PartitionProvider< T >.
Definition at line 102 of file doublesolution.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 111 of file doublesolution.h.
|
virtual |
Returns the specified clustering as a vector of vector of pointers to the elements.
Implements CluE::PartitionProvider< T >.
Definition at line 119 of file doublesolution.h.
double CluE::DoubleSolution< T >::seconds |
Definition at line 44 of file doublesolution.h.
std::vector<std::vector<T> > CluE::DoubleSolution< T >::proxysets |
Definition at line 45 of file doublesolution.h.
std::vector<std::vector<std::vector<T*> > > CluE::DoubleSolution< T >::partitions |
Definition at line 46 of file doublesolution.h.