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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 RandomGenerator
        distribution - 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 time
        rng - the RandomGenerator
        distribution - 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 time
        distribution - the AnyRealDistribution to use.