Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
Modifier and Type | Class and 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 to
IRNG.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
An abstract IDistribution that always has a lower bound of 0.0 and an upper bound of
EXCLUSIVE_ONE ,
matching the bounds of IRNG.nextDouble() . |
class |
KumaraswamyDistribution
A parameterized IDistribution that can be configured to take various shapes.
|
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) . |
Modifier and Type | Method and 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 from
otherDistribution . |
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 of
offset plus a result from otherDistribution . |
Copyright © Eben Howard 2012–2022. All rights reserved.