jartege
Interface CreationProbability
- All Known Implementing Classes:
- ConstantProbability, ThresholdProbability
- public interface CreationProbability
The interface CreationProbability allows one to define creation
probability functions. A creation probability function gives the
probability of creation of a new object in function of the number
of already created objects.
Method Summary |
double |
theFunction(int nbCreatedObjects)
The creation probability function. |
theFunction
public double theFunction(int nbCreatedObjects)
- The creation probability function.
Precondition : nbCreatedObjected >= 0
Postcondition : theFunction(nbCreatedObjects)
is in
[0, 1]
.
- Parameters:
nbCreatedObjects
- the number of already created objects.