Uses of Class
squidpony.squidmath.IDistribution.SimpleDistribution
Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of IDistribution.SimpleDistribution in squidpony.squidmath
Subclasses of IDistribution.SimpleDistribution in squidpony.squidmath 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.static class
SpikeDistribution.SimpleSpikeDistribution
A variant on SpikeDistribution that has its range shrunk and moved from[-1,1)
to[0,1)
.Fields in squidpony.squidmath declared as IDistribution.SimpleDistribution Modifier and Type Field Description IDistribution.SimpleDistribution
DistributedRNG. distribution
Methods in squidpony.squidmath that return IDistribution.SimpleDistribution 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
.Constructors in squidpony.squidmath with parameters of type IDistribution.SimpleDistribution Constructor Description DistributedRNG(long state, IDistribution.SimpleDistribution distribution)