|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unibo.cs.belief.TreeMassPotential
public class TreeMassPotential
An efficient implementation of a mass potential based on a tree map.
Field Summary | |
---|---|
protected Proposition |
core
|
protected java.util.Map |
focalSets
|
protected Frame |
frame
|
Constructor Summary | |
---|---|
TreeMassPotential(Frame frame)
|
Method Summary | |
---|---|
void |
addEvidence(Proposition prop,
double mass)
Assigns some evidence (mass) to a proposition. |
void |
applyThreshold(double threshold)
Deletes all mass assignments under the specified value. |
void |
condition(Proposition prop)
Conditions this mass potential to a subset of the frame. |
boolean |
equals(java.lang.Object mp)
|
Proposition |
getCore()
Returns the intersection of all the proposition to which this mass potential assigns some mass. |
double |
getEvidence(Proposition prop)
Returns the evidence assigned to a proposition so far. |
java.util.Set |
getFocalSets()
Returns the set of propositions to whom some evidence has been assigned. |
Frame |
getFrame()
Returns the set of all possible elementary events from which propositions are composed. |
int |
hashCode()
|
void |
normalize()
Transforms this mass potential into a mass function. |
Proposition |
pick(java.util.Random ran)
|
BeliefFunction |
toBeliefFunction()
Produces the belief function corresponding to this mass potential. |
CommonalityFunction |
toCommonalityFunction()
Produces the commonality function corresponding to this mass potential. |
PlausibilityFunction |
toPlausibilityFunction()
Produces the plausibility function corresponding to this mass potential. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Frame frame
protected Proposition core
protected java.util.Map focalSets
Constructor Detail |
---|
public TreeMassPotential(Frame frame)
Method Detail |
---|
public boolean equals(java.lang.Object mp)
equals
in interface MassPotential
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void addEvidence(Proposition prop, double mass)
MassPotential
addEvidence
in interface MassPotential
prop
- the proposition to which the evidence is assignedmass
- the evidence assigned to the propositionpublic double getEvidence(Proposition prop)
MassPotential
getEvidence
in interface MassPotential
prop
- the proposition we want to check
public void normalize()
MassPotential
normalize
in interface MassPotential
public java.util.Set getFocalSets()
MassPotential
normalize()
) the empty proposition is not
returned by this method.
getFocalSets
in interface MassPotential
public Frame getFrame()
MassPotential
getFrame
in interface MassPotential
public java.lang.String toString()
toString
in class java.lang.Object
public Proposition getCore()
MassPotential
getCore
in interface MassPotential
public void condition(Proposition prop)
MassPotential
condition
in interface MassPotential
prop
- the proposition on which this mass potential is conditionedpublic void applyThreshold(double threshold)
MassPotential
applyThreshold
in interface MassPotential
threshold
- the minimum value of mass that is retainedpublic BeliefFunction toBeliefFunction()
This method is an implementation of the Fast Möbius Transformation.
toBeliefFunction
in interface MassPotential
public PlausibilityFunction toPlausibilityFunction()
MassPotential
toPlausibilityFunction
in interface MassPotential
public CommonalityFunction toCommonalityFunction()
MassPotential
toCommonalityFunction
in interface MassPotential
public Proposition pick(java.util.Random ran)
pick
in interface MassPotential
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |