public class ProbabilisticAggregatingDistanceFunction extends Object implements DistanceFunction
| Constructor and Description |
|---|
ProbabilisticAggregatingDistanceFunction(AggregationFunction aggregator,
int weight)
Creates a new distance function with the given aggregator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(List<Double> l1,
List<Double> l2)
Measures the distance between the two vectors.
|
String |
toString() |
public ProbabilisticAggregatingDistanceFunction(AggregationFunction aggregator, int weight)
aggregator - some aggregation function.weight - a parameter for adjusting the aggregation.public double distance(List<Double> l1, List<Double> l2)
DistanceFunctiondistance in interface DistanceFunctionl1 - some list of doubles.l2 - some list of doubles.public String toString()
toString in interface DistanceFunctiontoString in class ObjectCopyright © 2018. All rights reserved.