Package org.tweetyproject.math.norm
Class ProbabilisticAggregatingNorm
java.lang.Object
org.tweetyproject.math.norm.ProbabilisticAggregatingNorm
- All Implemented Interfaces:
Serializable
,Norm<Vector<Double>>
,RealVectorNorm
This distance function uses an aggregator on a probabilistically normalized distance
for probabilities of each value.
- Author:
- Matthias Thimm
- See Also:
-
Constructor Summary
ConstructorDescriptionProbabilisticAggregatingNorm
(AggregationFunction aggregator, int weight) Creates a new distance function with the given aggregator. -
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.distanceTerm
(Term[] obj1, 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 termsReturns the norm as a term of the given termstoString()
-
Constructor Details
-
ProbabilisticAggregatingNorm
Creates a new distance function with the given aggregator.- Parameters:
aggregator
- some aggregation function.weight
- a parameter for adjusting the aggregation.
-
-
Method Details
-
distance
Description copied from interface:Norm
The distance between the two object, i.e. the norm of the difference vector. -
toString
-
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 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
-