AbstractFloatDistribution
cern.jet.random.tfloat

Class AbstractFloatDistribution

    • Method Detail

      • apply

        public float apply(float dummy)
        Equivalent to nextFloat(). 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 FloatFunction
        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 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 FloatRandomEngine makeDefaultGenerator()
        Constructs and returns a new uniform random number generation engine seeded with the current time. Currently this is FloatMersenneTwister.
      • nextFloat

        public abstract float nextFloat()
        Returns a random number from the distribution.
      • nextInt

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

SCaVis 2.0 © jWork.ORG