Package | Description |
---|---|
org.uncommons.maths.random |
This package provides deterministic, repeatable, pseudo-random number
generators, a set of strategies for seeding them, and classes for generating
values from different probability distributions.
|
Modifier and Type | Field and Description |
---|---|
static Probability |
Probability.EVENS
Convenient constant representing a probability of 0.5 (used to model
an event that has a 50/50 chance of occurring).
|
static Probability |
Probability.ONE
Convenient constant representing a probability of one.
|
static Probability |
Probability.ZERO
Convenient constant representing a probability of zero.
|
Modifier and Type | Method and Description |
---|---|
Probability |
Probability.getComplement()
The complement of a probability p is 1 - p.
|
Modifier and Type | Method and Description |
---|---|
int |
Probability.compareTo(Probability other)
Compares this value with the specified object for order.
|
Copyright © 2015. All rights reserved.