Class BoxMullerTransform

java.lang.Object
de.florianmichael.rclasses.math.integration.BoxMullerTransform

public class BoxMullerTransform extends Object
  • Constructor Details

    • BoxMullerTransform

      public BoxMullerTransform()
  • Method Details

    • distribution

      public static float distribution(Random random, float min, float max, float mean, float sigma)
      Parameters:
      random - The random object to use.
      min - The minimum value.
      max - The maximum value.
      mean - The mean value.
      sigma - The sigma value.
      Returns:
      A random number between the minimum and maximum value, with the given mean and sigma.
    • distribution

      public static double distribution(Random random, double min, double max, double mean, double sigma)
      Parameters:
      random - The random object to use.
      min - The minimum value.
      max - The maximum value.
      mean - The mean value.
      sigma - The sigma value.
      Returns:
      A random number between the minimum and maximum value, with the given mean and sigma.