CluE
1.0
|
Farthest first traversal algorithm. More...
#include <farthestfirsttraversal.h>
Public Member Functions | |
FarthestFirstTraversal (DissimilarityMeasure< T > const *measure=0, std::vector< T * > const *input=0, unsigned int numOfSamples=0, unsigned int firstPoint=0) | |
Constructor for general usage. More... | |
FarthestFirstTraversal (const FarthestFirstTraversal< T > &) | |
FarthestFirstTraversal< T > & | operator= (const FarthestFirstTraversal< T > &) |
virtual | ~FarthestFirstTraversal () |
virtual SolutionProvider * | compute () |
Returns an ordered DiscretesProxySolution. The first point is the starting point. More... | |
virtual void | setInput (std::vector< T * > const *) |
virtual void | setMeasure (DissimilarityMeasure< T > const *measure) |
void | setNumberOfSamples (unsigned int number) |
Sets the desired number of proxies. More... | |
void | setFirstPoint (unsigned int index) |
Sets the starting point. More... | |
![]() | |
virtual | ~Algorithm () |
Static Public Member Functions | |
static FarthestFirstTraversal < T > * | toFarthestFirstTraversal (Algorithm *s) |
does a dynamic cast of the given Algorithm to FarthestFirstTraversal<T> More... | |
Private Attributes | |
std::vector< T * > const * | input |
DissimilarityMeasure< T > * | measure |
unsigned int | number_of_samples |
unsigned int | first_point |
Farthest first traversal algorithm.
Definition at line 30 of file farthestfirsttraversal.h.
CluE::FarthestFirstTraversal< T >::FarthestFirstTraversal | ( | DissimilarityMeasure< T > const * | measure = 0 , |
std::vector< T * > const * | input = 0 , |
||
unsigned int | numOfSamples = 0 , |
||
unsigned int | firstPoint = 0 |
||
) |
Constructor for general usage.
Definition at line 83 of file farthestfirsttraversal.h.
CluE::FarthestFirstTraversal< T >::FarthestFirstTraversal | ( | const FarthestFirstTraversal< T > & | fft | ) |
Definition at line 91 of file farthestfirsttraversal.h.
|
virtual |
Definition at line 114 of file farthestfirsttraversal.h.
FarthestFirstTraversal< T > & CluE::FarthestFirstTraversal< T >::operator= | ( | const FarthestFirstTraversal< T > & | fft | ) |
Definition at line 99 of file farthestfirsttraversal.h.
|
virtual |
Returns an ordered DiscretesProxySolution. The first point is the starting point.
InvalidRuntimeConfigurationException | [0] Input is NULL. |
InvalidRuntimeConfigurationException | [1] Dissimilarity measure is NULL. |
InvalidRuntimeConfigurationException | [2] Empty input set. |
InvalidRuntimeConfigurationException | [3] Desired number of samples is 0. |
InvalidRuntimeConfigurationException | [4] Desired number of samples is larger than size of input. |
Implements CluE::Algorithm.
Definition at line 120 of file farthestfirsttraversal.h.
|
virtual |
Implements CluE::InputSetter< T >.
Definition at line 190 of file farthestfirsttraversal.h.
|
virtual |
Implements CluE::MeasureSetter< T >.
Definition at line 210 of file farthestfirsttraversal.h.
void CluE::FarthestFirstTraversal< T >::setNumberOfSamples | ( | unsigned int | number | ) |
Sets the desired number of proxies.
Definition at line 200 of file farthestfirsttraversal.h.
void CluE::FarthestFirstTraversal< T >::setFirstPoint | ( | unsigned int | index | ) |
Sets the starting point.
Definition at line 195 of file farthestfirsttraversal.h.
|
static |
does a dynamic cast of the given Algorithm to FarthestFirstTraversal<T>
Definition at line 205 of file farthestfirsttraversal.h.
|
private |
Definition at line 77 of file farthestfirsttraversal.h.
|
private |
Definition at line 78 of file farthestfirsttraversal.h.
|
private |
Definition at line 79 of file farthestfirsttraversal.h.
|
private |
Definition at line 80 of file farthestfirsttraversal.h.