Class AggregatingNorm
java.lang.Object
org.tweetyproject.math.norm.AggregatingNorm
- All Implemented Interfaces:
- Serializable,- Norm<Vector<Double>>,- RealVectorNorm
This norm uses an aggregator on the 1-norm distance of each 
 value.
- Author:
- Matthias Thimm
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAggregatingNorm(AggregationFunction aggregator) Creates a new distance function with the given aggregator.
- 
Method SummaryModifier and TypeMethodDescriptiondoubleThe distance between the two object, i.e.distanceTerm(Vector<Term> obj1, Vector<Term> obj2) The distance between the two objects as a term.distanceTerm(Term[] obj1, Term[] obj2) The distance between the two objects as a term.booleaninthashCode()doubleReturns the norm of the given objectReturns the norm as a term of the given termsReturns the norm as a term of the given termstoString()
- 
Constructor Details- 
AggregatingNormCreates a new distance function with the given aggregator.- Parameters:
- aggregator- some aggregation function.
 
 
- 
- 
Method Details- 
distanceDescription copied from interface:NormThe distance between the two object, i.e. the norm of the difference vector.
- 
toString
- 
hashCode
- 
equals
- 
norm
- 
normTermDescription copied from interface:RealVectorNormReturns the norm as a term of the given terms- Specified by:
- normTermin interface- RealVectorNorm
- Parameters:
- obj- some term vector
- Returns:
- the term of the norm
 
- 
normTermDescription copied from interface:RealVectorNormReturns the norm as a term of the given terms- Specified by:
- normTermin interface- RealVectorNorm
- Parameters:
- obj- some term array
- Returns:
- the term of the norm
 
- 
distanceTermDescription copied from interface:RealVectorNormThe distance between the two objects as a term.- Specified by:
- distanceTermin interface- RealVectorNorm
- Parameters:
- obj1- some terms
- obj2- some terms
- Returns:
- the distance between the two objects as a term
 
- 
distanceTermDescription copied from interface:RealVectorNormThe distance between the two objects as a term.- Specified by:
- distanceTermin interface- RealVectorNorm
- Parameters:
- obj1- some terms
- obj2- some terms
- Returns:
- the distance between the two objects as a term
 
 
-