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. |
static class |
SpikeDistribution.SimpleSpikeDistribution
A variant on SpikeDistribution that has its range shrunk and moved from
[-1,1) to [0,1) . |
Modifier and Type | Field and Description |
---|---|
IDistribution.SimpleDistribution |
DistributedRNG.distribution |
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 . |
Constructor and Description |
---|
DistributedRNG(long state,
IDistribution.SimpleDistribution distribution) |
Copyright © Eben Howard 2012–2022. All rights reserved.