Package org.tweetyproject.math.norm
Class PNorm
java.lang.Object
org.tweetyproject.math.norm.AbstractRealVectorNorm
org.tweetyproject.math.norm.PNorm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
The distance between the two object, i.e.distanceTerm
(Vector<Term> obj1, Vector<Term> obj2) The distance between the two objects as a term.double
Returns the norm of the given objectReturns the norm as a term of the given termsMethods inherited from class org.tweetyproject.math.norm.AbstractRealVectorNorm
distanceTerm, normTerm
-
Constructor Details
-
PNorm
public PNorm(int p) Creates a new p-norm with the given parameter.- Parameters:
p
- the parameter of this p-norm.
-
-
Method Details
-
norm
-
distance
-
normTerm
Description copied from interface:RealVectorNorm
Returns the norm as a term of the given terms- Specified by:
normTerm
in interfaceRealVectorNorm
- Specified by:
normTerm
in classAbstractRealVectorNorm
- Parameters:
obj
- some term vector- Returns:
- the term of the norm
-
distanceTerm
Description copied from interface:RealVectorNorm
The distance between the two objects as a term.- Specified by:
distanceTerm
in interfaceRealVectorNorm
- Specified by:
distanceTerm
in classAbstractRealVectorNorm
- Parameters:
obj1
- some termsobj2
- some terms- Returns:
- the distance between the two objects as a term
-