Class CurvedBoundedDistribution

java.lang.Object
squidpony.squidmath.IDistribution.SimpleDistribution
squidpony.squidmath.CurvedBoundedDistribution
All Implemented Interfaces:
IDistribution

public class CurvedBoundedDistribution
extends IDistribution.SimpleDistribution
implements IDistribution
An IDistribution that allows a parameter to determine how many calls to IRNG.nextDouble() to make and average whenever a double is requested. When this parameter degree is 1, this is uniform; when it is 2, this is a triangular distribution, and when it is 3 or more it is an increasingly centralized bell curve. The average value is always very close to 0.5, and the bounds are the same as IRNG.nextDouble().
Created by Tommy Ettinger on 11/27/2019.