Class NormalDistributionHelper


  • public class NormalDistributionHelper
    extends java.lang.Object
    Utility functions guided by the Normal Distribution.
    Since:
    5.1
    Author:
    Derek Hulley
    • Constructor Summary

      Constructors 
      Constructor Description
      NormalDistributionHelper()
      Use a simple normal distribution to generate random numbers
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getValue​(long min, long max)
      Get a random long where a standard deviation of 1.0 corresponds to the min and max values provided.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NormalDistributionHelper

        public NormalDistributionHelper()
        Use a simple normal distribution to generate random numbers
    • Method Detail

      • getValue

        public long getValue​(long min,
                             long max)
        Get a random long where a standard deviation of 1.0 corresponds to the min and max values provided. The sampling is repeated until a value is found within the range given.