Package net.sf.tweety.math.norm
Class MaximumNorm
- java.lang.Object
-
- net.sf.tweety.math.norm.AbstractRealVectorNorm
-
- net.sf.tweety.math.norm.MaximumNorm
-
- All Implemented Interfaces:
Norm<Vector<Double>>,RealVectorNorm
public class MaximumNorm extends AbstractRealVectorNorm
The Maximum norm.- Author:
- Nico Potyka
-
-
Constructor Summary
Constructors Constructor Description MaximumNorm()
-
Method Summary
Modifier and Type Method Description doubledistance(Vector<Double> obj1, Vector<Double> obj2)The distance between the two object, i.e.TermdistanceTerm(Vector<Term> obj1, Vector<Term> obj2)The distance between the two objects as a term.doublenorm(Vector<Double> obj)Returns the norm of the given objectTermnormTerm(Vector<Term> obj)Returns the norm as a term of the given terms-
Methods inherited from class net.sf.tweety.math.norm.AbstractRealVectorNorm
distanceTerm, normTerm
-
-
-
-
Method Detail
-
norm
public double norm(Vector<Double> obj)
Description copied from interface:NormReturns the norm of the given object- Parameters:
obj- some object- Returns:
- the norm of the object
-
distance
public double distance(Vector<Double> obj1, Vector<Double> obj2)
Description copied from interface:NormThe distance between the two object, i.e. the norm of the difference vector.- Parameters:
obj1- some objectobj2- some object- Returns:
- the distance between the two objects
-
normTerm
public Term normTerm(Vector<Term> obj)
Description copied from interface:RealVectorNormReturns the norm as a term of the given terms- Specified by:
normTermin interfaceRealVectorNorm- Specified by:
normTermin classAbstractRealVectorNorm- Parameters:
obj- some term vector- Returns:
- the term of the norm
-
distanceTerm
public Term distanceTerm(Vector<Term> obj1, Vector<Term> obj2)
Description copied from interface:RealVectorNormThe distance between the two objects as a term.- Specified by:
distanceTermin interfaceRealVectorNorm- Specified by:
distanceTermin classAbstractRealVectorNorm- Parameters:
obj1- some termsobj2- some terms- Returns:
- the distance between the two objects as a term
-
-