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
FieldsModifier and TypeFieldDescriptionprivate final org.apache.commons.rng.UniformRandomProvider
Source of randomness. -
Constructor Summary
Constructors -
Method Summary
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 rngSource 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 interfaceorg.apache.commons.rng.UniformRandomProvider
-
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceorg.apache.commons.rng.UniformRandomProvider
-