public class ProbabilisticAggregatingDistanceFunction extends java.lang.Object implements DistanceFunction
| Modifier and Type | Field and Description |
|---|---|
private AggregationFunction |
aggregator
The aggregation function used for computing the distance.
|
private static long |
serialVersionUID |
private int |
weight
A parameter for adjusting the aggregation.
|
| 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(java.util.List<java.lang.Double> l1,
java.util.List<java.lang.Double> l2)
Measures the distance between the two vectors.
|
java.lang.String |
toString() |
private static final long serialVersionUID
private AggregationFunction aggregator
private int weight
public ProbabilisticAggregatingDistanceFunction(AggregationFunction aggregator, int weight)
aggregator - some aggregation function.weight - a parameter for adjusting the aggregation.public double distance(java.util.List<java.lang.Double> l1,
java.util.List<java.lang.Double> l2)
DistanceFunctiondistance in interface DistanceFunctionl1 - some list of doubles.l2 - some list of doubles.public java.lang.String toString()
toString in interface DistanceFunctiontoString in class java.lang.Object