Package net.sf.tweety.math.norm
Class AbstractRealVectorNorm
- java.lang.Object
-
- net.sf.tweety.math.norm.AbstractRealVectorNorm
-
- All Implemented Interfaces:
Norm<java.util.Vector<java.lang.Double>>
,RealVectorNorm
- Direct Known Subclasses:
ManhattanNorm
,MaximumNorm
,PNorm
public abstract class AbstractRealVectorNorm extends java.lang.Object implements RealVectorNorm
Abstract class for real vector norms.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description AbstractRealVectorNorm()
-
Method Summary
Modifier and Type Method Description abstract Term
distanceTerm(java.util.Vector<Term> obj1, java.util.Vector<Term> obj2)
The distance between the two objects as a term.Term
distanceTerm(Term[] obj1, Term[] obj2)
The distance between the two objects as a term.abstract Term
normTerm(java.util.Vector<Term> obj)
Returns the norm as a term of the given termsTerm
normTerm(Term[] obj)
Returns the norm as a term of the given terms
-
-
-
Method Detail
-
normTerm
public abstract Term normTerm(java.util.Vector<Term> obj)
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
public Term normTerm(Term[] obj)
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
public abstract Term distanceTerm(java.util.Vector<Term> obj1, java.util.Vector<Term> obj2)
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
public Term distanceTerm(Term[] obj1, Term[] obj2)
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
-
-