Documentation of 'cern.jet.random.tdouble.AbstractDoubleDistribution' Java class
AbstractDoubleDistribution
cern.jet.random.tdouble

Class AbstractDoubleDistribution

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      double apply(double dummy)
      Equivalent to nextDouble().
      int apply(int dummy)
      Equivalent to nextInt().
      java.lang.Object clone()
      Returns a deep copy of the receiver; the copy will produce identical sequences.
      static DoubleRandomEngine makeDefaultGenerator()
      Constructs and returns a new uniform random number generation engine seeded with the current time.
      abstract double nextDouble()
      Returns a random number from the distribution.
      int nextInt()
      Returns a random number from the distribution; returns (int) Math.round(nextDouble()).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • apply

        public double apply(double dummy)
        Equivalent to nextDouble(). This has the effect that distributions can now be used as function objects, returning a random number upon function evaluation.
        Specified by:
        apply in interface DoubleFunction
        Parameters:
        dummy - argument passed to the function.
        Returns:
        the result of the function.
      • apply

        public int apply(int dummy)
        Equivalent to nextInt(). This has the effect that distributions can now be used as function objects, returning a random number upon function evaluation.
        Specified by:
        apply in interface IntFunction
        Parameters:
        dummy - argument passed to the function.
        Returns:
        the result of the function.
      • clone

        public java.lang.Object clone()
        Returns a deep copy of the receiver; the copy will produce identical sequences. After this call has returned, the copy and the receiver have equal but separate state.
        Overrides:
        clone in class PersistentObject
        Returns:
        a copy of the receiver.
      • makeDefaultGenerator

        public static DoubleRandomEngine makeDefaultGenerator()
        Constructs and returns a new uniform random number generation engine seeded with the current time. Currently this is DoubleMersenneTwister.
      • nextDouble

        public abstract double nextDouble()
        Returns a random number from the distribution.
      • nextInt

        public int nextInt()
        Returns a random number from the distribution; returns (int) Math.round(nextDouble()). Override this method if necessary.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.