Uses of Interface
squidpony.squidmath.IDistribution
Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of IDistribution in squidpony.squidmath
Classes in squidpony.squidmath that implement IDistribution Modifier and Type Class Description class
BathtubDistribution
An IDistribution that produces results between 0.0 inclusive and 1.0 exclusive, but is much more likely to produce results near 0.0 or 1.0, further from 0.5.class
CurvedBoundedDistribution
An IDistribution that allows a parameter to determine how many calls toIRNG.nextDouble()
to make and average whenever a double is requested.class
ExponentialDistribution
An IDistribution that implements the Exponential distribution.class
GaussianDistribution
An IDistribution that produces double results with a Gaussian (normal) distribution.static class
IDistribution.SimpleDistribution
class
SpikeDistribution
An IDistribution that produces results between -1.0 inclusive and 1.0 exclusive, but is much more likely to produce results near 0.0, and does not "round off" like a Gaussian curve around the midpoint.static class
SpikeDistribution.SimpleSpikeDistribution
A variant on SpikeDistribution that has its range shrunk and moved from[-1,1)
to[0,1)
.Methods in squidpony.squidmath with parameters of type IDistribution Modifier and Type Method Description static IDistribution.SimpleDistribution
IDistribution.SimpleDistribution. clampedDistribution(IDistribution otherDistribution)
Makes a new SimpleDistribution implementation given any IDistribution (typically one with large or infinite bounds) by simply clamping results that are below 0 to 0 and at least 1 to 0.9999999999999999 (the largest double less than 1.0 than can be represented).static IDistribution.SimpleDistribution
IDistribution.SimpleDistribution. fractionalDistribution(IDistribution otherDistribution)
Makes a new SimpleDistribution implementation given any IDistribution (typically one with large or infinite bounds) by getting the fractional component of a result fromotherDistribution
.static IDistribution.SimpleDistribution
IDistribution.SimpleDistribution. fractionalOffsetDistribution(IDistribution otherDistribution, double offset)
Makes a new SimpleDistribution implementation given any IDistribution (typically one with large or infinite bounds) by getting the fractional component ofoffset
plus a result fromotherDistribution
.