net.sourceforge.cilib.util
Interface DistanceMeasure

All Known Implementing Classes:
AbsoluteDistanceMeasure, ChebyshevDistanceMeasure, CosineDistanceMeasure, EuclideanDistanceMeasure, ManhattanDistanceMeasure, MinkowskiMetric

public interface DistanceMeasure

Definition of how to determine the distance between two objects.

Author:
Edwin Peer, Gary Pampara

Method Summary
<T extends Collection<? extends Number>>
double
distance(T x, T y)
          Determine the distance between the two provided Collections.
<T extends Type,U extends StructuredType<T>>
double
distance(U x, U y)
          Determine the distance between the two provided StructuredType instances.
 

Method Detail

distance

<T extends Type,U extends StructuredType<T>> double distance(U x,
                                                             U y)
Determine the distance between the two provided StructuredType instances.

Type Parameters:
T -
U -
Parameters:
x - The first object from which the calculation is to be performed.
y - The second object from which the calculation is to be performed.
Returns:
The distance between the provided instances.

distance

<T extends Collection<? extends Number>> double distance(T x,
                                                         T y)
Determine the distance between the two provided Collections.

Type Parameters:
T - The Collection type.
Parameters:
x - The first Collection.
y - The second Collection.
Returns:
The distance value.


Copyright © 2009 CIRG. All Rights Reserved.