it.unibo.cs.belief
Interface CommonalityFunction


public interface CommonalityFunction

A commonality function, as defined by Dempster. This function does not have a simple interpretation, but it mathematically simplifies the definition of Dempster's combination rule.

Version:
0.1
Author:
Matteo Magnani

Method Summary
 void addCommonality(Proposition prop, double commonality)
          Increases the commonality number of a proposition by a specified value.
 double getCommonality(Proposition prop)
          Finds the commonality number assigned to a proposition so far.
 BeliefFunction toBeliefFunction()
          Produces the belief function corresponding to this commonality function.
 MassPotential toMassPotential()
          Produces a mass potential corresponding to this commonality function.
 PlausibilityFunction toPlausibilityFunction()
          Produces the plausibility function corresponding to this commonality function.
 

Method Detail

addCommonality

void addCommonality(Proposition prop,
                    double commonality)
Increases the commonality number of a proposition by a specified value. This method may lead to functions that do not represent commonality numbers. Therefore, it should not be used by classes outside the package, except if you know what you are doing.

Parameters:
prop - the proposition on which the commonality number is increased
commonality - the commonality number added to the proposition

getCommonality

double getCommonality(Proposition prop)
Finds the commonality number assigned to a proposition so far.

Parameters:
prop - the proposition we want to check
Returns:
a commonality number

toMassPotential

MassPotential toMassPotential()
Produces a mass potential corresponding to this commonality function. In particular, this mass potential is (approximately) a mass function.

Returns:
a mass potential

toPlausibilityFunction

PlausibilityFunction toPlausibilityFunction()
Produces the plausibility function corresponding to this commonality function.

Returns:
a plausibility function

toBeliefFunction

BeliefFunction toBeliefFunction()
Produces the belief function corresponding to this commonality function.

Returns:
a belief function