BICO
1.1
|
Data structure for discrete proxies. More...
#include <discreteproxysolution.h>
Public Member Functions | |
DiscreteProxySolution () | |
virtual | ~DiscreteProxySolution () |
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 * | discrete_proxy (unsigned int n, unsigned int c) const |
Returns a pointer to the proxy for the specified clustering and cluster. More... | |
virtual std::vector< T * > | discrete_proxies (unsigned int n) const |
Returns a vector of pointers to the proxies for the specified clustering. More... | |
![]() | |
virtual | ~SolutionProvider () |
![]() | |
virtual | ~DiscreteProxyProvider () |
Public Attributes | |
double | seconds |
std::vector< std::vector< T * > > | proxysets |
Additional Inherited Members | |
![]() | |
static DiscreteProxyProvider< T > * | toDiscreteProxyProvider (SolutionProvider *s) |
Does a dynamic cast of the given SolutionProvider to a DiscreteProxyProvider. More... | |
Data structure for discrete proxies.
This struct is for use in algorithms computing proxies.
Definition at line 19 of file discreteproxysolution.h.
CluE::DiscreteProxySolution< T >::DiscreteProxySolution | ( | ) |
Definition at line 41 of file discreteproxysolution.h.
|
inlinevirtual |
Definition at line 26 of file discreteproxysolution.h.
|
virtual |
returns the time needed for the last computation
Implements CluE::SolutionProvider.
Definition at line 45 of file discreteproxysolution.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::DiscreteProxyProvider< T >.
Definition at line 50 of file discreteproxysolution.h.
|
virtual |
returns the size of a particular solution
index | number between 0 and number_of_solutions()-1 |
Implements CluE::DiscreteProxyProvider< T >.
Definition at line 55 of file discreteproxysolution.h.
|
virtual |
Returns a pointer to the proxy for the specified clustering and cluster.
Returns a pointer to the element of the input set that was computed to be the proxy for cluster number proxyIndex in clustering number solutionIndex.
Implements CluE::DiscreteProxyProvider< T >.
Definition at line 62 of file discreteproxysolution.h.
|
virtual |
Returns a vector of pointers to the proxies for the specified clustering.
Returns a vector of pointers to the elements of the input set that were computed to be the proxies for clustering number proxyIndex.
Implements CluE::DiscreteProxyProvider< T >.
Definition at line 70 of file discreteproxysolution.h.
double CluE::DiscreteProxySolution< T >::seconds |
Definition at line 37 of file discreteproxysolution.h.
std::vector<std::vector<T*> > CluE::DiscreteProxySolution< T >::proxysets |
Definition at line 38 of file discreteproxysolution.h.