Class BetaPrime

All Implemented Interfaces:
ContinuousGenerator, Seedable

public class BetaPrime extends Beta
A random number generator based on the beta prime distribution.
  • Constructor Details

    • BetaPrime

      public BetaPrime(double shape_a, double shape_b)
      the seed is automatically provided by the SeedGenerator
      Parameters:
      shape_a - The a shape parameter of the distribution
      shape_b - The b shape parameter of the distribution
    • BetaPrime

      public BetaPrime(double shape_a, double shape_b, long seed)
      The constructor with which a specific seed is set for the random number generator
      Parameters:
      shape_a - The a shape parameter of the distribution
      shape_b - The b shape parameter of the distribution
      seed - The initial seed for the generator, two instances with the same seed will generate the same sequence of numbers
  • Method Details

    • sample

      public double sample()
      Generate a new random number.
      Specified by:
      sample in interface ContinuousGenerator
      Overrides:
      sample in class Beta
      Returns:
      The next random number in the sequence