public class AggregatingNorm extends Object implements RealVectorNorm, Serializable
| Constructor and Description |
|---|
AggregatingNorm(AggregationFunction aggregator)
Creates a new distance function with the given aggregator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(Vector<Double> l1,
Vector<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(Vector<Term> obj1,
Vector<Term> obj2)
The distance between the two objects as a term.
|
boolean |
equals(Object obj) |
int |
hashCode() |
double |
norm(Vector<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(Vector<Term> obj)
Returns the norm as a term of the given terms
|
String |
toString() |
public AggregatingNorm(AggregationFunction aggregator)
aggregator - some aggregation function.public double distance(Vector<Double> l1, Vector<Double> l2)
Normpublic double norm(Vector<Double> obj)
Normpublic Term normTerm(Vector<Term> obj)
RealVectorNormnormTerm in interface RealVectorNormobj - some term vectorpublic Term normTerm(Term[] obj)
RealVectorNormnormTerm in interface RealVectorNormobj - some term arraypublic Term distanceTerm(Vector<Term> obj1, Vector<Term> obj2)
RealVectorNormdistanceTerm in interface RealVectorNormobj1 - some termsobj2 - some termspublic Term distanceTerm(Term[] obj1, Term[] obj2)
RealVectorNormdistanceTerm in interface RealVectorNormobj1 - some termsobj2 - some termsCopyright © 2019. All rights reserved.