Package org.tweetyproject.math.norm
Class EntropyNorm<T extends Comparable<T>>
java.lang.Object
org.tweetyproject.math.func.EntropyFunction
org.tweetyproject.math.norm.EntropyNorm<T>
- Type Parameters:
T
- The class of the objects used.
- All Implemented Interfaces:
SimpleFunction<Vector<Double>,
,Double> SimpleRealValuedFunction
,Norm<Vector<Double>>
,RealVectorNorm
The entropy norm. Uses the entropy of a vector of doubles
(=probability function) as a measure of norm and the relative entropy of two
probability distributions as distance.
Note that entropy is not actually a norm!
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
The distance between the two object, i.e.double
distance
(ProbabilityFunction<T> prob1, ProbabilityFunction<T> prob2) distance between problemsdistanceTerm
(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.double
Returns the norm of the given objectdouble
norm
(ProbabilityFunction<T> prob) normReturns the norm as a term of the given termsReturns the norm as a term of the given termsMethods inherited from class org.tweetyproject.math.func.EntropyFunction
eval, getTerm
-
Constructor Details
-
EntropyNorm
public EntropyNorm()
-
-
Method Details
-
norm
Description copied from interface:Norm
Returns the norm of the given object- Specified by:
norm
in interfaceNorm<T extends Comparable<T>>
- Parameters:
obj
- some object- Returns:
- the norm of the object
-
norm
norm- Parameters:
prob
- problem- Returns:
- Probability Vector As Doubles
-
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
-
distance
Description copied from interface:Norm
The distance between the two object, i.e. the norm of the difference vector.- Specified by:
distance
in interfaceNorm<T extends Comparable<T>>
- Parameters:
obj1
- some objectobj2
- some object- Returns:
- the distance between the two objects
-
distance
distance between problems- Parameters:
prob1
- problem 1prob2
- problem 2- Returns:
- distance
-
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
-
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
-