|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProbabilityRule
The ProbabilityRule is used to calculate the probability of objects with respect to another where that probability can be updated over time. These probabilities and their associated objects will be mapped to a specified range in a probability map such that a random number draw can will return an object.
| Method Summary | |
|---|---|
double |
getProbability(java.lang.Object o)
Returns the probability for the specified object. |
RangeMap |
makeProbabilityMap(RangeMap map)
Recreates the probability map from the specified map, typically called after update changes the probability. |
void |
update(java.lang.Object o)
Performs an update using the specified object. |
void |
update(java.lang.Object o,
float amt)
Performs an update using the specified object and specified amount. |
| Method Detail |
|---|
double getProbability(java.lang.Object o)
void update(java.lang.Object o)
void update(java.lang.Object o,
float amt)
RangeMap makeProbabilityMap(RangeMap map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||