| 
||||||||
| 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 MassPotentialequals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public void addEvidence(Proposition prop,
                        double mass)
MassPotential
addEvidence in interface MassPotentialprop - the proposition to which the evidence is assignedmass - the evidence assigned to the propositionpublic double getEvidence(Proposition prop)
MassPotential
getEvidence in interface MassPotentialprop - the proposition we want to check
public void normalize()
MassPotential
normalize in interface MassPotentialpublic java.util.Set getFocalSets()
MassPotentialnormalize()) the empty proposition is not
 returned by this method.
getFocalSets in interface MassPotentialpublic Frame getFrame()
MassPotential
getFrame in interface MassPotentialpublic java.lang.String toString()
toString in class java.lang.Objectpublic Proposition getCore()
MassPotential
getCore in interface MassPotentialpublic void condition(Proposition prop)
MassPotential
condition in interface MassPotentialprop - the proposition on which this mass potential is conditionedpublic void applyThreshold(double threshold)
MassPotential
applyThreshold in interface MassPotentialthreshold - the minimum value of mass that is retainedpublic BeliefFunction toBeliefFunction()
This method is an implementation of the Fast Möbius Transformation.
toBeliefFunction in interface MassPotentialpublic PlausibilityFunction toPlausibilityFunction()
MassPotential
toPlausibilityFunction in interface MassPotentialpublic CommonalityFunction toCommonalityFunction()
MassPotential
toCommonalityFunction in interface MassPotentialpublic 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 | |||||||