#include <ProximityMeasure.h>
Inheritance diagram for prapi::ProximityMeasure< T >:

It is used by classifiers and the clustering algorighms provided by the clustering library. In these contextes, "proximity" is always taken to mean "dissimilarity". That is, minimizing the proximity measure means finding closest sample or cluster. If you are using similarity measure, try to find a reasonable inversion for it.
Public Methods | |
| ProximityMeasure (bool representatives=true, bool symmetric=true) | |
| Create a new ProximityMeasure that either uses or does not use cluster representatives and either is or is not symmetric. | |
| virtual | ~ProximityMeasure () |
| virtual double | getProximity (const util::List< T > &sample, const util::List< T > &model, double stopAfter=MAXDOUBLE) const=0 throw (ProximityException&) |
| Proximity between two lists. | |
| template<class I, class C> double | getProximity (const Sample< T, I, C > &sample, const Sample< T, I, C > &model, double stopAfter=MAXDOUBLE) const throw (ProximityException&) |
| Proximity between two samples. | |
| template<class I, class C> double | getProximity (const Sample< T, I, C > &sample, const Cluster< T, I, C > &sampleSet, double stopAfter=MAXDOUBLE) const throw (ProximityException&) |
| Proximity between sample and a set. | |
| template<class I, class C> double | getProximity (const Cluster< T, I, C > &sampleSet1, const Cluster< T, I, C > &sampleSet2, double stopAfter=MAXDOUBLE) const throw (ProximityException&) |
| Proximity between two sets. | |
| bool | usesRepresentatives (void) const |
| Check whether this measure is using representatives in calculating proximities between sets or in calculating the proximity between a sample and a set. | |
| void | setUseRepresentatives (bool use) |
| Set the use "representatives flag". | |
| bool | isSymmetric (void) |
| See whether this measure is symmetric. | |
Protected Attributes | |
| bool | _bUseRepresentatives |
| A flag that indicates whether this measure uses cluster representatives. | |
| bool | _bSymmetric |
| A flag that indicates whether this measure is a symmetric measure, i.e. | |
|
||||||||||||||||||||||||
|
Proximity between two sets. If cluster representatives are not used, this implementation returns the minimum proximity between any two samples in the given sets by using the getProximity method. Otherwise the proximity between cluster representatives is returned. If representatives are not used, the complexity of this procedure is O(NM), where N and M are the sample counts in each cluster
|
|
||||||||||||||||||||||||
|
Proximity between sample and a set. If cluster representatives are set off, this implementation returns the minimum proximity between the given sample and any sample in the given cluster by using the getProximity method. Otherwise the proximity between the sample and the cluster's representative is returned. If representatives are not used, the complexity of this procedure is O(N), where N is the number of samples in a cluster.
|
|
||||||||||||||||||||||||
|
Proximity between two samples.
|
|
||||||||||||||||||||
|
Proximity between two lists.
Implemented in JHDistance, MMDistance, prapi::ProximityModifier< operation, T >, prapi::ProximityAdder< T >, prapi::ProximityMultiplier< T >, prapi::EuclideanDistance< T >, prapi::SquaredEuclidean< T >, prapi::Cumlog< T >, prapi::JDDistance< T >, and prapi::HistogramIntersection< T >. |
|
||||||||||
|
Set the use "representatives flag". The default value is true. See getProximity() for more info. |
|
|||||
|
A flag that indicates whether this measure is a symmetric measure, i.e. P(a,b) = P(b,a), where P(x,y) is the proximity between samples x and y. |