Class AbstractRealVectorNorm

java.lang.Object
org.tweetyproject.math.norm.AbstractRealVectorNorm
All Implemented Interfaces:
Norm<Vector<Double>>, RealVectorNorm
Direct Known Subclasses:
ManhattanNorm, MaximumNorm, PNorm

public abstract class AbstractRealVectorNorm extends Object implements RealVectorNorm
Abstract class for real vector norms.
Author:
Matthias Thimm
  • Constructor Details

    • AbstractRealVectorNorm

      public AbstractRealVectorNorm()
  • Method Details

    • normTerm

      public abstract Term normTerm(Vector<Term> obj)
      Description copied from interface: RealVectorNorm
      Returns the norm as a term of the given terms
      Specified by:
      normTerm in interface RealVectorNorm
      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 interface RealVectorNorm
      Parameters:
      obj - some term array
      Returns:
      the term of the norm
    • distanceTerm

      public abstract Term distanceTerm(Vector<Term> obj1, Vector<Term> obj2)
      Description copied from interface: RealVectorNorm
      The distance between the two objects as a term.
      Specified by:
      distanceTerm in interface RealVectorNorm
      Parameters:
      obj1 - some terms
      obj2 - 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 interface RealVectorNorm
      Parameters:
      obj1 - some terms
      obj2 - some terms
      Returns:
      the distance between the two objects as a term