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

It may be used in scaling the measured values.
Example:
MyProximityMeasure myProximity; //Inherited from ProximityMeasure<float>
//Create a kNN classifier that uses MyProximityMeasure and scales the
//proximity values to the range [0,1]. The values min and max can
//be obtained for example from ProximityMatrix.
kNNClassifier<float> knn(trainingSamples,
new ProximityMultiplier<float>(new ProximityAdder<float>(myProximity,
-min),
1/(max-min)));
Public Methods | |
| ProximityMultiplier (ProximityMeasure< T > *measure, double value) | |
| Create a new Multiplier that uses the given proximity measure. | |
| ProximityMultiplier (ProximityMeasure< T > &measure, double value) | |
| Create a new Multiplier that uses the given proximity measure. | |
| virtual | ~ProximityMultiplier () |
| double | getProximity (const util::List< T > &sample, const util::List< T > &model, double stopAfter) const throw (ProximityException&) |
| Proximity between two lists. | |
|
||||||||||||||||
|
Create a new Multiplier that uses the given proximity measure. Note that if you use this constructor, the memory pointed by measure is automatically released upon the deletion of the Multiplier.
|
|
||||||||||||||||
|
Create a new Multiplier that uses the given proximity measure.
|
|
||||||||||||||||||||
|
Proximity between two lists.
Implements prapi::ProximityMeasure< T >. |