|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectit.unibo.cs.belief.TreeBeliefFunction
public class TreeBeliefFunction
An efficient implementation of a belief function based on a tree map.
| Field Summary | |
|---|---|
private Proposition |
core
|
private Frame |
frame
|
private java.util.TreeMap |
sets
|
| Constructor Summary | |
|---|---|
TreeBeliefFunction(Frame frame)
|
|
| Method Summary | |
|---|---|
void |
addBelief(Proposition prop,
double mass)
Increases the belief in a proposition by a specified value. |
double |
getBelief(Proposition prop)
Finds the belief assigned to a proposition so far. |
CommonalityFunction |
toCommonalityFunction()
Produces the commonality function corresponding to this belief function. |
MassPotential |
toMassPotential()
Produces a mass potential corresponding to this belief function. |
PlausibilityFunction |
toPlausibilityFunction()
Produces the plausibility function corresponding to this belief function. |
java.lang.String |
toString()
Produces a string representation of this belief function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Frame frame
private Proposition core
private java.util.TreeMap sets
| Constructor Detail |
|---|
public TreeBeliefFunction(Frame frame)
| Method Detail |
|---|
public void addBelief(Proposition prop,
double mass)
BeliefFunction
addBelief in interface BeliefFunctionprop - the proposition to which the belief is assignedmass - the belief assigned to the propositionpublic double getBelief(Proposition prop)
BeliefFunction
getBelief in interface BeliefFunctionprop - the proposition we want to check
public MassPotential toMassPotential()
BeliefFunction
toMassPotential in interface BeliefFunctionpublic PlausibilityFunction toPlausibilityFunction()
BeliefFunction
toPlausibilityFunction in interface BeliefFunctionpublic CommonalityFunction toCommonalityFunction()
BeliefFunction
toCommonalityFunction in interface BeliefFunctionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||