public class DistanceCalculation extends Object
| Constructor and Description |
|---|
DistanceCalculation() |
| Modifier and Type | Method and Description |
|---|---|
static float |
distance(float[] vector1,
float[] vector2,
float threshold,
FIEnums.DistanceTypes distanceMeasure)
Distance function
|
static float |
distance(float[] vector1,
float[] vector2,
float threshold,
FIEnums.DistanceTypes distanceMeasure,
float[] weights)
Distance function
|
public static float distance(float[] vector1,
float[] vector2,
float threshold,
FIEnums.DistanceTypes distanceMeasure)
throws Exception
vector1 - the first vectorvector2 - the second vectorthreshold - The thresholddistanceMeasure - The distance measure to useException - An errorpublic static float distance(float[] vector1,
float[] vector2,
float threshold,
FIEnums.DistanceTypes distanceMeasure,
float[] weights)
throws Exception
vector1 - the first vectorvector2 - the second vectorthreshold - The thresholddistanceMeasure - The distance measure to useweights - weight per dimentionException - An errorCopyright © 2014. All Rights Reserved.