Class AnyRealDistribution
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.TimeDistribution
,java.io.Serializable
,java.lang.Cloneable
public class AnyRealDistribution<T> extends AbstractDistribution<T>
This class is able to use any distribution provided by Apache Math 3 as a subclass of RealDistribution, blocking the execution if getPropensityContribution returns zero for any condition.
-
-
Constructor Summary
Constructors Constructor Description AnyRealDistribution(RandomGenerator rng, String distribution, Array<double> parameters)
AnyRealDistribution(Time start, RandomGenerator rng, String distribution, Array<double> parameters)
AnyRealDistribution(RealDistribution distribution)
AnyRealDistribution(Time start, RealDistribution distribution)
-
Method Summary
Modifier and Type Method Description final double
getRate()
AbstractDistribution<T>
cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
-
Methods inherited from class it.unibo.alchemist.model.timedistributions.AbstractDistribution
getNextOccurence, update
-
Methods inherited from class it.unibo.alchemist.model.TimeDistribution
cloneOnNewNode, getNextOccurence, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AnyRealDistribution
AnyRealDistribution(RandomGenerator rng, String distribution, Array<double> parameters)
- Parameters:
rng
- the RandomGeneratordistribution
- the distribution name (case insensitive).parameters
- the parameters for the distribution
-
AnyRealDistribution
AnyRealDistribution(Time start, RandomGenerator rng, String distribution, Array<double> parameters)
- Parameters:
start
- the initial timerng
- the RandomGeneratordistribution
- the distribution name (case insensitive).parameters
- the parameters for the distribution
-
AnyRealDistribution
AnyRealDistribution(RealDistribution distribution)
- Parameters:
distribution
- the AnyRealDistribution to use.
-
AnyRealDistribution
AnyRealDistribution(Time start, RealDistribution distribution)
- Parameters:
start
- distribution start timedistribution
- the AnyRealDistribution to use.
-
-
Method Detail
-
getRate
final double getRate()
-
cloneOnNewNode
AbstractDistribution<T> cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
-
-
-
-