BICO
1.1
|
Calculates the k-means weight. More...
#include <kmeansevaluator.h>
Public Member Functions | |
KMeansEvaluator (DissimilarityMeasure< T > const *measure=0) | |
Instantiates KMeansEvaluator, optionally with a DissimilarityMeasure to use when calculation the maximum diameter. More... | |
KMeansEvaluator (const KMeansEvaluator< T > &) | |
KMeansEvaluator< T > & | operator= (const KMeansEvaluator< T > &) |
virtual | ~KMeansEvaluator () |
virtual void | setMeasure (DissimilarityMeasure< T > const *measure) |
Sets the DissimilarityMeasure used when calculating the maximum diameter. More... | |
void | setWeightModifier (WeightModifier< T > *wm) |
virtual double | proxycost (std::vector< T * > const &points, std::vector< T > const &proxies) const |
Assigns all points to a proxy and calculates the k-means weight of the resulting clustering. More... | |
virtual double | proxycost (std::vector< T * > const &points, std::vector< T * > const &proxies) const |
virtual double | proxycost (std::vector< T * > const &points, ProxyProvider< T > const &proxySource, unsigned int solutionIndex) const |
Assigns all points to a proxy (provided by proxySource) and calculates the k-means weight of the resulting clustering. More... | |
virtual double | proxycost (std::vector< T * > const &points, DiscreteProxyProvider< T > const &proxySource, unsigned int solutionIndex) const |
virtual double | proxycost (std::vector< T * > const &points, std::vector< T > const &proxies, unsigned int index) const |
Assigns all points to a proxy and calculates the k-means weight of the cluster[index]. More... | |
virtual double | proxycost (std::vector< T * > const &points, std::vector< T * > const &proxies, unsigned int index) const |
virtual double | proxycost (std::vector< T * > const &points, ProxyProvider< T > const &proxySource, unsigned int solutionIndex, unsigned int proxyIndex) const |
Assigns all points to a proxy (provided by proxySource) and calculates the k-means weight of the cluster[index]. More... | |
virtual double | proxycost (std::vector< T * > const &points, DiscreteProxyProvider< T > const &proxySource, unsigned int solutionIndex, unsigned int proxyIndex) const |
virtual double | combinedcost (std::vector< std::vector< T * > > const &clusters, std::vector< T > const &proxies) const |
Calculates the k-means weight of a given clustering. More... | |
virtual double | combinedcost (std::vector< std::vector< T * > > const &clusters, std::vector< T * > const &proxies) const |
virtual double | combinedcost (PartitionProvider< T > const &clusteringSource, ProxyProvider< T > const &proxySource, unsigned int solutionIndex) const |
Calculates the k-means weight of a given clustering (provided by clusteringSource and proxySource). More... | |
virtual double | combinedcost (PartitionProvider< T > const &clusteringSource, DiscreteProxyProvider< T > const &proxySource, unsigned int solutionIndex) const |
virtual double | combinedcost (std::vector< T * > const &cluster, T const &proxy) const |
Calculates the k-means weight of a given proxy and the corresponding points. More... | |
virtual double | combinedcost (PartitionProvider< T > const &clusteringSource, ProxyProvider< T > const &proxySource, unsigned int solutionIndex, unsigned int proxyIndex) const |
Calculates the k-means weight of a given proxy (provided by proxySource) and the corresponding points (provided by clusteringSource). More... | |
virtual double | combinedcost (PartitionProvider< T > const &clusteringSource, DiscreteProxyProvider< T > const &proxySource, unsigned int solutionIndex, unsigned int proxyIndex) const |
![]() | |
virtual | ~ProxyEvaluation () |
![]() | |
virtual | ~Evaluation () |
![]() | |
virtual | ~CombinedEvaluation () |
virtual double | combinedcost (std::vector< T * > const &partition, T const *const proxy) const |
Protected Member Functions | |
std::vector< double > | proxycostGeneric (std::vector< T * > const &points, std::vector< T > const &proxies) const |
Provides a k-means weight result per cluster (may be added, chosen from, ...). More... | |
std::vector< double > | proxycostGeneric (std::vector< T * > const &points, std::vector< T * > const &proxies) const |
Private Attributes | |
DissimilarityMeasure< T > * | measure |
WeightModifier< T > * | weightModifier |
Calculates the k-means weight.
Definition at line 21 of file kmeansevaluator.h.
CluE::KMeansEvaluator< T >::KMeansEvaluator | ( | DissimilarityMeasure< T > const * | measure = 0 | ) |
Instantiates KMeansEvaluator, optionally with a DissimilarityMeasure to use when calculation the maximum diameter.
measure | Optional. Nevertheless, you have to set a DissimilarityMeasure before using this class. |
Definition at line 151 of file kmeansevaluator.h.
CluE::KMeansEvaluator< T >::KMeansEvaluator | ( | const KMeansEvaluator< T > & | kme | ) |
Definition at line 157 of file kmeansevaluator.h.
|
virtual |
Definition at line 178 of file kmeansevaluator.h.
KMeansEvaluator< T > & CluE::KMeansEvaluator< T >::operator= | ( | const KMeansEvaluator< T > & | kme | ) |
Definition at line 162 of file kmeansevaluator.h.
|
virtual |
Sets the DissimilarityMeasure used when calculating the maximum diameter.
Implements CluE::MeasureSetter< T >.
Definition at line 249 of file kmeansevaluator.h.
void CluE::KMeansEvaluator< T >::setWeightModifier | ( | WeightModifier< T > * | wm | ) |
Definition at line 418 of file kmeansevaluator.h.
|
virtual |
Assigns all points to a proxy and calculates the k-means weight of the resulting clustering.
Implements CluE::ProxyEvaluation< T >.
Definition at line 188 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::ProxyEvaluation< T >.
Definition at line 202 of file kmeansevaluator.h.
|
virtual |
Assigns all points to a proxy (provided by proxySource) and calculates the k-means weight of the resulting clustering.
Implements CluE::ProxyEvaluation< T >.
Definition at line 216 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::ProxyEvaluation< T >.
Definition at line 221 of file kmeansevaluator.h.
|
virtual |
Assigns all points to a proxy and calculates the k-means weight of the cluster[index].
Implements CluE::ProxyEvaluation< T >.
Definition at line 227 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::ProxyEvaluation< T >.
Definition at line 233 of file kmeansevaluator.h.
|
virtual |
Assigns all points to a proxy (provided by proxySource) and calculates the k-means weight of the cluster[index].
Implements CluE::ProxyEvaluation< T >.
Definition at line 239 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::ProxyEvaluation< T >.
Definition at line 244 of file kmeansevaluator.h.
|
virtual |
Calculates the k-means weight of a given clustering.
Implements CluE::CombinedEvaluation< T >.
Definition at line 324 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::CombinedEvaluation< T >.
Definition at line 353 of file kmeansevaluator.h.
|
virtual |
Calculates the k-means weight of a given clustering (provided by clusteringSource and proxySource).
Implements CluE::CombinedEvaluation< T >.
Definition at line 382 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::CombinedEvaluation< T >.
Definition at line 387 of file kmeansevaluator.h.
|
virtual |
Calculates the k-means weight of a given proxy and the corresponding points.
Implements CluE::CombinedEvaluation< T >.
Definition at line 392 of file kmeansevaluator.h.
|
virtual |
Calculates the k-means weight of a given proxy (provided by proxySource) and the corresponding points (provided by clusteringSource).
Implements CluE::CombinedEvaluation< T >.
Definition at line 408 of file kmeansevaluator.h.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements CluE::CombinedEvaluation< T >.
Definition at line 413 of file kmeansevaluator.h.
|
protected |
Provides a k-means weight result per cluster (may be added, chosen from, ...).
Definition at line 259 of file kmeansevaluator.h.
|
protected |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 291 of file kmeansevaluator.h.
|
private |
Definition at line 147 of file kmeansevaluator.h.
|
private |
Definition at line 148 of file kmeansevaluator.h.