Class ParetoDistribution.InvertedRNG

java.lang.Object
org.apache.commons.statistics.distribution.ParetoDistribution.InvertedRNG
All Implemented Interfaces:
org.apache.commons.rng.UniformRandomProvider
Enclosing class:
ParetoDistribution

private static class ParetoDistribution.InvertedRNG extends Object implements org.apache.commons.rng.UniformRandomProvider
Create a RNG that inverts the output from nextDouble() as (1 - nextDouble()).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.commons.rng.UniformRandomProvider
    Source of randomness.
  • Constructor Summary

    Constructors
    Constructor
    Description
    InvertedRNG(org.apache.commons.rng.UniformRandomProvider rng)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    long
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.commons.rng.UniformRandomProvider

    doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextBytes, nextDouble, nextDouble, nextFloat, nextFloat, nextFloat, nextInt, nextInt, nextInt, nextLong, nextLong
  • Field Details

    • rng

      private final org.apache.commons.rng.UniformRandomProvider rng
      Source of randomness.
  • Constructor Details

    • InvertedRNG

      InvertedRNG(org.apache.commons.rng.UniformRandomProvider rng)
      Parameters:
      rng - Source of randomness
  • Method Details

    • nextLong

      public long nextLong()
      Specified by:
      nextLong in interface org.apache.commons.rng.UniformRandomProvider
    • nextDouble

      public double nextDouble()
      Specified by:
      nextDouble in interface org.apache.commons.rng.UniformRandomProvider