public class ProbabilisticAggregatingNorm extends java.lang.Object implements RealVectorNorm, java.io.Serializable
| 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 |
|---|
ProbabilisticAggregatingNorm(AggregationFunction aggregator,
int weight)
Creates a new distance function with the given aggregator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(java.util.Vector<java.lang.Double> l1,
java.util.Vector<java.lang.Double> l2)
The distance between the two object, i.e.
|
Term |
distanceTerm(Term[] obj1,
Term[] obj2)
The distance between the two objects as a term.
|
Term |
distanceTerm(java.util.Vector<Term> obj1,
java.util.Vector<Term> obj2)
The distance between the two objects as a term.
|
double |
norm(java.util.Vector<java.lang.Double> obj)
Returns the norm of the given object
|
Term |
normTerm(Term[] obj)
Returns the norm as a term of the given terms
|
Term |
normTerm(java.util.Vector<Term> obj)
Returns the norm as a term of the given terms
|
java.lang.String |
toString() |
private static final long serialVersionUID
private AggregationFunction aggregator
private int weight
public ProbabilisticAggregatingNorm(AggregationFunction aggregator, int weight)
aggregator - some aggregation function.weight - a parameter for adjusting the aggregation.public double distance(java.util.Vector<java.lang.Double> l1,
java.util.Vector<java.lang.Double> l2)
Normpublic java.lang.String toString()
toString in class java.lang.Objectpublic double norm(java.util.Vector<java.lang.Double> obj)
Normpublic Term normTerm(java.util.Vector<Term> obj)
RealVectorNormnormTerm in interface RealVectorNormobj - some term vectorpublic Term normTerm(Term[] obj)
RealVectorNormnormTerm in interface RealVectorNormobj - some term arraypublic Term distanceTerm(java.util.Vector<Term> obj1, java.util.Vector<Term> obj2)
RealVectorNormdistanceTerm in interface RealVectorNormobj1 - some termsobj2 - some termspublic Term distanceTerm(Term[] obj1, Term[] obj2)
RealVectorNormdistanceTerm in interface RealVectorNormobj1 - some termsobj2 - some terms