| Package | Description |
|---|---|
| net.sf.tweety.math.probability |
| Modifier and Type | Field and Description |
|---|---|
static Probability |
Probability.ONE
Constant for probability 1
|
static Probability |
Probability.ZERO
Constant for probability 0
|
| Modifier and Type | Method and Description |
|---|---|
Probability |
Probability.add(Probability other)
Computes the sum of this and the given probability.
|
Probability |
Probability.complement()
Returns the complement of this probability, i.e.
|
Probability |
Probability.divide(Double other)
Divides this probability by given value returns the result.
|
Probability |
Probability.divide(Probability other)
Divides this probability by other and returns the result.
|
Probability |
ProbabilityFunction.get(Object key) |
Probability |
Probability.mult(Double other)
Computes the product of this probability and the given number.
|
Probability |
Probability.mult(Integer other)
Computes the product of this probability and the given number.
|
Probability |
Probability.mult(Probability other)
Computes the product of this probability and the given probability.
|
Probability |
ProbabilityFunction.probability(Collection<? extends T> objects)
Gets the probability of the given object.
|
Probability |
ProbabilityFunction.probability(T w)
Gets the probability of the given object.
|
Probability |
ProbabilityFunction.put(T key,
Probability value) |
Probability |
ProbabilityFunction.remove(Object key) |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<T,Probability>> |
ProbabilityFunction.entrySet() |
Vector<Probability> |
ProbabilityFunction.getProbabilityVector()
Returns the vector of probabilities, depending on the order
of the domain elements (which can be ordered as they
implement Comparable).
|
Collection<Probability> |
ProbabilityFunction.values() |
| Modifier and Type | Method and Description |
|---|---|
Probability |
Probability.add(Probability other)
Computes the sum of this and the given probability.
|
Probability |
Probability.divide(Probability other)
Divides this probability by other and returns the result.
|
boolean |
Probability.isWithinTolerance(Probability other)
Checks whether the given probability is "nearly" the same
as this probability (given the actual precision).
|
Probability |
Probability.mult(Probability other)
Computes the product of this probability and the given probability.
|
Probability |
ProbabilityFunction.put(T key,
Probability value) |
| Modifier and Type | Method and Description |
|---|---|
void |
ProbabilityFunction.putAll(Map<? extends T,? extends Probability> m) |
| Constructor and Description |
|---|
Probability(Probability other)
Creates a new probability from the given probability
|
Copyright © 2018. All rights reserved.