CluE  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CluE::KCenterEvaluator< T > Class Template Reference

Calculates the k-center weight. More...

#include <kcenterevaluator.h>

Inheritance diagram for CluE::KCenterEvaluator< T >:
Inheritance graph
Collaboration diagram for CluE::KCenterEvaluator< T >:
Collaboration graph

Public Member Functions

 KCenterEvaluator (DissimilarityMeasure< T > const *measure=0)
 Instantiates KCenterEvaluator, optionally with a DissimilarityMeasure to use when calculation the maximum diameter. More...
 
 KCenterEvaluator (const KCenterEvaluator< T > &)
 
KCenterEvaluator< T > & operator= (const KCenterEvaluator< T > &)
 
virtual ~KCenterEvaluator ()
 
virtual void setMeasure (DissimilarityMeasure< T > const *measure)
 Sets the DissimilarityMeasure used when calculating the radius. More...
 
virtual double proxycost (std::vector< T * > const &points, std::vector< T > const &proxies) const
 Assigns all points to a proxy and calculates the k-center 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-center 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-center 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-center 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-center 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-center 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-center 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-center 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
 
- Public Member Functions inherited from CluE::ProxyEvaluation< T >
virtual ~ProxyEvaluation ()
 
- Public Member Functions inherited from CluE::Evaluation
virtual ~Evaluation ()
 
- Public Member Functions inherited from CluE::CombinedEvaluation< T >
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-center 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
 

Detailed Description

template<typename T>
class CluE::KCenterEvaluator< T >

Calculates the k-center weight.

Definition at line 19 of file kcenterevaluator.h.

Constructor & Destructor Documentation

template<typename T >
CluE::KCenterEvaluator< T >::KCenterEvaluator ( DissimilarityMeasure< T > const *  measure = 0)

Instantiates KCenterEvaluator, optionally with a DissimilarityMeasure to use when calculation the maximum diameter.

Parameters
measureOptional. Nevertheless, you have to set a DissimilarityMeasure before using this class.
See also
setMeasure

Definition at line 134 of file kcenterevaluator.h.

template<typename T >
CluE::KCenterEvaluator< T >::KCenterEvaluator ( const KCenterEvaluator< T > &  kce)

Definition at line 140 of file kcenterevaluator.h.

template<typename T >
CluE::KCenterEvaluator< T >::~KCenterEvaluator ( )
virtual

Definition at line 158 of file kcenterevaluator.h.

Member Function Documentation

template<typename T >
KCenterEvaluator< T > & CluE::KCenterEvaluator< T >::operator= ( const KCenterEvaluator< T > &  kce)

Definition at line 145 of file kcenterevaluator.h.

template<typename T >
void CluE::KCenterEvaluator< T >::setMeasure ( DissimilarityMeasure< T > const *  measure)
virtual

Sets the DissimilarityMeasure used when calculating the radius.

Implements CluE::MeasureSetter< T >.

Definition at line 229 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
std::vector< T > const &  proxies 
) const
virtual

Assigns all points to a proxy and calculates the k-center weight of the resulting clustering.

Implements CluE::ProxyEvaluation< T >.

Definition at line 166 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
std::vector< T * > const &  proxies 
) const
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 181 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
ProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex 
) const
virtual

Assigns all points to a proxy (provided by proxySource) and calculates the k-center weight of the resulting clustering.

Implements CluE::ProxyEvaluation< T >.

Definition at line 196 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
DiscreteProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex 
) const
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 201 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
std::vector< T > const &  proxies,
unsigned int  index 
) const
virtual

Assigns all points to a proxy and calculates the k-center weight of the cluster[index].

Implements CluE::ProxyEvaluation< T >.

Definition at line 207 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
std::vector< T * > const &  proxies,
unsigned int  index 
) const
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 213 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
ProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex,
unsigned int  proxyIndex 
) const
virtual

Assigns all points to a proxy (provided by proxySource) and calculates the k-center weight of the cluster[index].

Implements CluE::ProxyEvaluation< T >.

Definition at line 219 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::proxycost ( std::vector< T * > const &  points,
DiscreteProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex,
unsigned int  proxyIndex 
) const
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 224 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( std::vector< std::vector< T * > > const &  clusters,
std::vector< T > const &  proxies 
) const
virtual

Calculates the k-center weight of a given clustering.

Implements CluE::CombinedEvaluation< T >.

Definition at line 302 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( std::vector< std::vector< T * > > const &  clusters,
std::vector< T * > const &  proxies 
) const
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 335 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( PartitionProvider< T > const &  clusteringSource,
ProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex 
) const
virtual

Calculates the k-center weight of a given clustering (provided by clusteringSource and proxySource).

Implements CluE::CombinedEvaluation< T >.

Definition at line 368 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( PartitionProvider< T > const &  clusteringSource,
DiscreteProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex 
) const
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 373 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( std::vector< T * > const &  cluster,
T const &  proxy 
) const
virtual

Calculates the k-center weight of a given proxy and the corresponding points.

Implements CluE::CombinedEvaluation< T >.

Definition at line 378 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( PartitionProvider< T > const &  clusteringSource,
ProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex,
unsigned int  proxyIndex 
) const
virtual

Calculates the k-center weight of a given proxy (provided by proxySource) and the corresponding points (provided by clusteringSource).

Implements CluE::CombinedEvaluation< T >.

Definition at line 393 of file kcenterevaluator.h.

template<typename T >
double CluE::KCenterEvaluator< T >::combinedcost ( PartitionProvider< T > const &  clusteringSource,
DiscreteProxyProvider< T > const &  proxySource,
unsigned int  solutionIndex,
unsigned int  proxyIndex 
) const
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 398 of file kcenterevaluator.h.

template<typename T >
std::vector< double > CluE::KCenterEvaluator< T >::proxycostGeneric ( std::vector< T * > const &  points,
std::vector< T > const &  proxies 
) const
protected

Provides a k-center weight result per cluster (may be added, chosen from, ...).

Definition at line 238 of file kcenterevaluator.h.

template<typename T >
std::vector< double > CluE::KCenterEvaluator< T >::proxycostGeneric ( std::vector< T * > const &  points,
std::vector< T * > const &  proxies 
) const
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 269 of file kcenterevaluator.h.

Member Data Documentation

template<typename T>
DissimilarityMeasure<T>* CluE::KCenterEvaluator< T >::measure
private

Definition at line 131 of file kcenterevaluator.h.


The documentation for this class was generated from the following file: