Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::EuclideanDistance< T > Class Template Reference

#include <ProximityMeasure.h>

Inheritance diagram for prapi::EuclideanDistance< T >:

prapi::ProximityMeasure< T > Object List of all members.

Detailed Description

template<class T>
class prapi::EuclideanDistance< T >

The standard Euclidean distance as a proximity measure.

Public Methods

double getProximity (const util::List< T > &sample, const util::List< T > &model, double stopAfter=MAXDOUBLE) const throw (ProximityException&)
 Proximity between two lists.

Member Function Documentation

template<class T>
double prapi::EuclideanDistance< T >::getProximity const util::List< T > &    sample,
const util::List< T > &    model,
double    stopAfter = MAXDOUBLE
const throw (ProximityException&) [virtual]

Proximity between two lists.

sample  the list to be classified
model  the model
stopAfter  A value that can be used in optimizing the performance of a proximity measure. Classifiers may set this value to inform the proximity measure to stop if it notices the proximity will be over a certain value. For example, the kNN classifier sets this value to the kth smallest proximity so far. If a sample is not closer than that, then it makes no sense to inspect it any more.

Implements prapi::ProximityMeasure< T >.

The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.