Package org.tweetyproject.math.norm
Class AbstractRealVectorNorm
java.lang.Object
org.tweetyproject.math.norm.AbstractRealVectorNorm
- All Implemented Interfaces:
Norm<Vector<Double>>
,RealVectorNorm
- Direct Known Subclasses:
ManhattanNorm
,MaximumNorm
,PNorm
Abstract class for real vector norms.
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Term
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.abstract Term
Returns the norm as a term of the given termsReturns the norm as a term of the given terms
-
Constructor Details
-
AbstractRealVectorNorm
public AbstractRealVectorNorm()
-
-
Method Details
-
normTerm
Description copied from interface:RealVectorNorm
Returns the norm as a term of the given terms- Specified by:
normTerm
in interfaceRealVectorNorm
- Parameters:
obj
- some term vector- Returns:
- the term of the norm
-
normTerm
Description copied from interface:RealVectorNorm
Returns the norm as a term of the given terms- Specified by:
normTerm
in interfaceRealVectorNorm
- Parameters:
obj
- some term array- 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
- Parameters:
obj1
- some termsobj2
- some terms- Returns:
- the distance between the two objects as a term
-
distanceTerm
Description copied from interface:RealVectorNorm
The distance between the two objects as a term.- Specified by:
distanceTerm
in interfaceRealVectorNorm
- Parameters:
obj1
- some termsobj2
- some terms- Returns:
- the distance between the two objects as a term
-