Index

A B C D E F G H I J K L M N O P Q R S T U V W X Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

A - Static variable in class org.uncommons.maths.random.CMWC4096RNG
 
add(Rational) - Method in class org.uncommons.maths.number.Rational
Add the specified value to this value and return the result as a new object (also a rational).
addValue(double) - Method in class org.uncommons.maths.statistics.DataSet
Adds a single value to the data set and updates any statistics that are calculated cumulatively.
AdjustableNumberGenerator<T> - Class in org.uncommons.maths.number
Implementation of NumberGenerator that works similarly to ConstantGenerator but allows the returned value to be changed after instantiation.
AdjustableNumberGenerator(T) - Constructor for class org.uncommons.maths.number.AdjustableNumberGenerator
 
AESCounterRNG - Class in org.uncommons.maths.random
Non-linear random number generator based on the AES block cipher in counter mode.
AESCounterRNG() - Constructor for class org.uncommons.maths.random.AESCounterRNG
Creates a new RNG and seeds it using 128 bits from the default seeding strategy.
AESCounterRNG(byte[]) - Constructor for class org.uncommons.maths.random.AESCounterRNG
Creates an RNG and seeds it with the specified seed data.
AESCounterRNG(int) - Constructor for class org.uncommons.maths.random.AESCounterRNG
Seed the RNG using the default seed generation strategy to create a seed of the specified size.
AESCounterRNG(SeedGenerator) - Constructor for class org.uncommons.maths.random.AESCounterRNG
Seed the RNG using the provided seed generation strategy to create a 128-bit seed.
AESCounterRNG.AESKey - Class in org.uncommons.maths.random
Trivial key implementation for use with AES cipher.
AESKey(byte[]) - Constructor for class org.uncommons.maths.random.AESCounterRNG.AESKey
 
approxEquals(double, double, double) - Static method in class org.uncommons.maths.Maths
Checks that two values are approximately equal (plus or minus a specified tolerance).
assertNotEmpty() - Method in class org.uncommons.maths.statistics.DataSet
 
assertValidIndex(int) - Method in class org.uncommons.maths.binary.BitString
Helper method to check whether a bit index is valid or not.
AUTOMATON_LENGTH - Static variable in class org.uncommons.maths.random.CellularAutomatonRNG
 

B

BASE_URL - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
BIG_FACTORIALS - Static variable in class org.uncommons.maths.Maths
 
bigFactorial(int) - Static method in class org.uncommons.maths.Maths
Calculates the factorial of n where n is a positive integer.
BinaryUtils - Class in org.uncommons.maths.binary
Utility methods for working with binary and hex data.
BinaryUtils() - Constructor for class org.uncommons.maths.binary.BinaryUtils
 
BinomialGenerator - Class in org.uncommons.maths.random
Discrete random sequence that follows a binomial distribution.
BinomialGenerator(int, double, Random) - Constructor for class org.uncommons.maths.random.BinomialGenerator
Creates a generator of binomially-distributed values from a distribution with the specified parameters.
BinomialGenerator(NumberGenerator<Integer>, NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.BinomialGenerator
Creates a generator of binomially-distributed values.
binomialWithEvenProbability(int) - Method in class org.uncommons.maths.random.BinomialGenerator
Generating binomial values when p = 0.5 is straightforward.
BitString - Class in org.uncommons.maths.binary
Implementation of a fixed-length bit-string.
BitString(int) - Constructor for class org.uncommons.maths.binary.BitString
Creates a bit string of the specified length with all bits initially set to zero (off).
BitString(int, Random) - Constructor for class org.uncommons.maths.binary.BitString
Creates a bit string of the specified length with each bit set randomly (the distribution of bits is uniform so long as the output from the provided RNG is also uniform).
BitString(String) - Constructor for class org.uncommons.maths.binary.BitString
Initialises the bit string from a character string of 1s and 0s in big-endian order.
BITWISE_BYTE_TO_INT - Static variable in class org.uncommons.maths.binary.BinaryUtils
 
BOOTSTRAP_FACTOR - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
BOOTSTRAP_SEED - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 

C

cache - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
CACHE_SIZE - Static variable in class org.uncommons.maths.Maths
 
cacheLock - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
cacheOffset - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
carry - Variable in class org.uncommons.maths.random.CMWC4096RNG
 
cells - Variable in class org.uncommons.maths.random.CellularAutomatonRNG
 
CellularAutomatonRNG - Class in org.uncommons.maths.random
Java port of the cellular automaton pseudorandom number generator developed by Tony Pasqualoni.
CellularAutomatonRNG() - Constructor for class org.uncommons.maths.random.CellularAutomatonRNG
Creates a new RNG and seeds it using the default seeding strategy.
CellularAutomatonRNG(byte[]) - Constructor for class org.uncommons.maths.random.CellularAutomatonRNG
Creates an RNG and seeds it with the specified seed data.
CellularAutomatonRNG(SeedGenerator) - Constructor for class org.uncommons.maths.random.CellularAutomatonRNG
Seed the RNG using the provided seed generation strategy.
cipher - Variable in class org.uncommons.maths.random.AESCounterRNG
 
clone() - Method in class org.uncommons.maths.binary.BitString
 
CMWC4096RNG - Class in org.uncommons.maths.random
A Java version of George Marsaglia's Complementary Multiply With Carry (CMWC) RNG.
CMWC4096RNG() - Constructor for class org.uncommons.maths.random.CMWC4096RNG
Creates a new RNG and seeds it using the default seeding strategy.
CMWC4096RNG(byte[]) - Constructor for class org.uncommons.maths.random.CMWC4096RNG
Creates an RNG and seeds it with the specified seed data.
CMWC4096RNG(SeedGenerator) - Constructor for class org.uncommons.maths.random.CMWC4096RNG
Seed the RNG using the provided seed generation strategy.
CombinationGenerator<T> - Class in org.uncommons.maths.combinatorics
Combination generator for generating all combinations of a given size from the specified set of elements.
CombinationGenerator(Collection<T>, int) - Constructor for class org.uncommons.maths.combinatorics.CombinationGenerator
Create a combination generator that generates all combinations of a specified length from the given set.
CombinationGenerator(T[], int) - Constructor for class org.uncommons.maths.combinatorics.CombinationGenerator
Create a combination generator that generates all combinations of a specified length from the given set.
combinationIndices - Variable in class org.uncommons.maths.combinatorics.CombinationGenerator
 
compareTo(Rational) - Method in class org.uncommons.maths.number.Rational
Compares this value with the specified object for order.
compareTo(Probability) - Method in class org.uncommons.maths.random.Probability
Compares this value with the specified object for order.
constant - Variable in class org.uncommons.maths.number.ConstantGenerator
 
ConstantGenerator<T> - Class in org.uncommons.maths.number
Convenience implementation of NumberGenerator that always returns the same value.
ConstantGenerator(T) - Constructor for class org.uncommons.maths.number.ConstantGenerator
Creates a number generator that always returns the same values.
ContinuousUniformGenerator - Class in org.uncommons.maths.random
Continuous, uniformly distributed random sequence.
ContinuousUniformGenerator(double, double, Random) - Constructor for class org.uncommons.maths.random.ContinuousUniformGenerator
 
convertBytesToHexString(byte[]) - Static method in class org.uncommons.maths.binary.BinaryUtils
Converts an array of bytes in to a String of hexadecimal characters (0 - F).
convertBytesToInt(byte[], int) - Static method in class org.uncommons.maths.binary.BinaryUtils
Take four bytes from the specified position in the specified block and convert them into a 32-bit int, using the big-endian convention.
convertBytesToInts(byte[]) - Static method in class org.uncommons.maths.binary.BinaryUtils
Convert an array of bytes into an array of ints.
convertBytesToLong(byte[], int) - Static method in class org.uncommons.maths.binary.BinaryUtils
Utility method to convert an array of bytes into a long.
convertCellsToInt(int[], int) - Static method in class org.uncommons.maths.random.CellularAutomatonRNG
 
convertDoubleToFixedPointBits(double) - Static method in class org.uncommons.maths.binary.BinaryUtils
Converts a floating point value in the range 0 - 1 into a fixed point bit string (where the most significant bit has a value of 0.5).
convertHexStringToBytes(String) - Static method in class org.uncommons.maths.binary.BinaryUtils
Converts a hexadecimal String (such as one generated by the BinaryUtils.convertBytesToHexString(byte[]) method) into an array of bytes.
counter - Variable in class org.uncommons.maths.random.AESCounterRNG
 
countSetBits() - Method in class org.uncommons.maths.binary.BitString
 
countUnsetBits() - Method in class org.uncommons.maths.binary.BitString
 
createLongSeed(byte[]) - Static method in class org.uncommons.maths.random.JavaRNG
Helper method to convert seed bytes into the long value required by the super class.
currentBlock - Variable in class org.uncommons.maths.random.AESCounterRNG
 
currentCellIndex - Variable in class org.uncommons.maths.random.CellularAutomatonRNG
 

D

data - Variable in class org.uncommons.maths.binary.BitString
Store the bits packed in an array of 32-bit ints.
dataSet - Variable in class org.uncommons.maths.statistics.DataSet
 
DataSet - Class in org.uncommons.maths.statistics
Utility class for calculating statistics for a finite data set.
DataSet() - Constructor for class org.uncommons.maths.statistics.DataSet
Creates an empty data set with a default initial capacity.
DataSet(double[]) - Constructor for class org.uncommons.maths.statistics.DataSet
Creates a data set and populates it with the specified values.
DataSet(int) - Constructor for class org.uncommons.maths.statistics.DataSet
Creates an empty data set with the specified initial capacity.
dataSetSize - Variable in class org.uncommons.maths.statistics.DataSet
 
DEBUG_PROPERTY - Static variable in class org.uncommons.maths.random.DefaultSeedGenerator
 
DEFAULT_CAPACITY - Static variable in class org.uncommons.maths.statistics.DataSet
 
DEFAULT_SEED_SIZE_BYTES - Static variable in class org.uncommons.maths.random.AESCounterRNG
 
DefaultSeedGenerator - Class in org.uncommons.maths.random
Seed generator that maintains multiple strategies for seed generation and will delegate to the best one available for the current operating environment.
DefaultSeedGenerator() - Constructor for class org.uncommons.maths.random.DefaultSeedGenerator
 
denominator - Variable in class org.uncommons.maths.number.Rational
 
DEV_RANDOM - Static variable in class org.uncommons.maths.random.DevRandomSeedGenerator
 
DevRandomSeedGenerator - Class in org.uncommons.maths.random
RNG seed strategy that gets data from /dev/random on systems that provide it (e.g.
DevRandomSeedGenerator() - Constructor for class org.uncommons.maths.random.DevRandomSeedGenerator
 
DiehardInputGenerator - Class in org.uncommons.maths.random
Utility to generate an input file for the DIEHARD suite of statistical tests for random number generators.
DiehardInputGenerator() - Constructor for class org.uncommons.maths.random.DiehardInputGenerator
 
DiscreteUniformGenerator - Class in org.uncommons.maths.random
Discrete, uniformly distributed random sequence.
DiscreteUniformGenerator(int, int, Random) - Constructor for class org.uncommons.maths.random.DiscreteUniformGenerator
 
divide(Rational) - Method in class org.uncommons.maths.number.Rational
Divide this rational by the specified value and return the result as a new object (also a Rational).
doubleValue() - Method in class org.uncommons.maths.number.Rational
Returns the result of dividing the numerator by the denominator.
doubleValue() - Method in class org.uncommons.maths.random.Probability
Returns the probability value as a double.

E

elements - Variable in class org.uncommons.maths.combinatorics.CombinationGenerator
 
elements - Variable in class org.uncommons.maths.combinatorics.PermutationGenerator
 
EmptyDataSetException - Exception Class in org.uncommons.maths.statistics
Unchecked exception thrown when an attempt is made to obtain statistics from a DataSet that has had no values added to it.
EmptyDataSetException() - Constructor for exception class org.uncommons.maths.statistics.EmptyDataSetException
 
equals(Object) - Method in class org.uncommons.maths.binary.BitString
 
equals(Object) - Method in class org.uncommons.maths.number.Rational
Determines whether this rational value is equal to some other object.
equals(Object) - Method in class org.uncommons.maths.random.Probability
Determines whether this probability value is equal to some other object.
EVENS - Static variable in class org.uncommons.maths.random.Probability
Convenient constant representing a probability of 0.5 (used to model an event that has a 50/50 chance of occurring).
ExponentialGenerator - Class in org.uncommons.maths.random
Continuous random sequence that follows an exponential distribution.
ExponentialGenerator(double, Random) - Constructor for class org.uncommons.maths.random.ExponentialGenerator
Creates a generator of exponentially-distributed values from a distribution with the specified rate.
ExponentialGenerator(NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.ExponentialGenerator
Creates a generator of exponentially-distributed values from a distribution with a rate controlled by the specified generator parameter.

F

factorial(int) - Static method in class org.uncommons.maths.Maths
Calculates the factorial of n where n is a number in the range 0 - 20.
flipBit(int) - Method in class org.uncommons.maths.binary.BitString
Inverts the value of the bit at the specified index.
floatValue() - Method in class org.uncommons.maths.number.Rational
Returns the result of dividing the numerator by the denominator.
floatValue() - Method in class org.uncommons.maths.random.Probability
Returns the probability value as a float.

G

GaussianGenerator - Class in org.uncommons.maths.random
Normally distributed random sequence.
GaussianGenerator(double, double, Random) - Constructor for class org.uncommons.maths.random.GaussianGenerator
Creates a generator of normally-distributed values from a distribution with the specified mean and standard deviation.
GaussianGenerator(NumberGenerator<Double>, NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.GaussianGenerator
Creates a generator of normally-distributed values.
GENERATE_MASK1 - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
GENERATE_MASK2 - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
generateNextCombinationIndices() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Generate the indices into the elements array for the next combination.
generateNextPermutationIndices() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Generate the indices into the elements array for the next permutation.
generateOutputFile(Random, File) - Static method in class org.uncommons.maths.random.DiehardInputGenerator
Generates a file of random data in a format suitable for the DIEHARD test.
generateSeed(int) - Method in class org.uncommons.maths.random.DefaultSeedGenerator
Generates a seed by trying each of the available strategies in turn until one succeeds.
generateSeed(int) - Method in class org.uncommons.maths.random.DevRandomSeedGenerator
Generate a seed value for a random number generator.
generateSeed(int) - Method in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
Generate a seed value for a random number generator.
generateSeed(int) - Method in class org.uncommons.maths.random.SecureRandomSeedGenerator
Generate a seed value for a random number generator.
generateSeed(int) - Method in interface org.uncommons.maths.random.SeedGenerator
Generate a seed value for a random number generator.
GENERATORS - Static variable in class org.uncommons.maths.random.DefaultSeedGenerator
Delegate generators.
getAggregate() - Method in class org.uncommons.maths.statistics.DataSet
 
getAlgorithm() - Method in class org.uncommons.maths.random.AESCounterRNG.AESKey
 
getArithmeticMean() - Method in class org.uncommons.maths.statistics.DataSet
The arithemthic mean of an n-element set is the sum of all the elements divided by n.
getBit(int) - Method in class org.uncommons.maths.binary.BitString
Returns the bit at the specified index.
getComplement() - Method in class org.uncommons.maths.random.Probability
The complement of a probability p is 1 - p.
getDenominator() - Method in class org.uncommons.maths.number.Rational
Returns the denominator (divisor) of the fraction.
getEncoded() - Method in class org.uncommons.maths.random.AESCounterRNG.AESKey
 
getFormat() - Method in class org.uncommons.maths.random.AESCounterRNG.AESKey
 
getGeometricMean() - Method in class org.uncommons.maths.statistics.DataSet
The geometric mean of an n-element set is the nth-root of the product of all the elements.
getHarmonicMean() - Method in class org.uncommons.maths.statistics.DataSet
The harmonic mean of an n-element set is n divided by the sum of the reciprocals of the values (where the reciprocal of a value x is 1/x).
getInstance() - Static method in class org.uncommons.maths.random.DefaultSeedGenerator
 
getLength() - Method in class org.uncommons.maths.binary.BitString
 
getMaximum() - Method in class org.uncommons.maths.statistics.DataSet
 
getMeanDeviation() - Method in class org.uncommons.maths.statistics.DataSet
Calculates the mean absolute deviation of the data set.
getMedian() - Method in class org.uncommons.maths.statistics.DataSet
Determines the median value of the data set.
getMinimum() - Method in class org.uncommons.maths.statistics.DataSet
 
getNumerator() - Method in class org.uncommons.maths.number.Rational
Returns the numerator of the fraction.
getProduct() - Method in class org.uncommons.maths.statistics.DataSet
 
getRemainingCombinations() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
 
getRemainingPermutations() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Returns the number of permutations not yet generated.
getSampleStandardDeviation() - Method in class org.uncommons.maths.statistics.DataSet
The sample standard deviation is the square root of the sample variance.
getSampleVariance() - Method in class org.uncommons.maths.statistics.DataSet
Calculates the variance (a measure of statistical dispersion) of the data set.
getSeed() - Method in class org.uncommons.maths.random.AESCounterRNG
getSeed() - Method in class org.uncommons.maths.random.CellularAutomatonRNG
getSeed() - Method in class org.uncommons.maths.random.CMWC4096RNG
getSeed() - Method in class org.uncommons.maths.random.JavaRNG
getSeed() - Method in class org.uncommons.maths.random.MersenneTwisterRNG
getSeed() - Method in interface org.uncommons.maths.random.RepeatableRNG
 
getSeed() - Method in class org.uncommons.maths.random.XORShiftRNG
getSize() - Method in class org.uncommons.maths.statistics.DataSet
Returns the number of values in this data set.
getStandardDeviation() - Method in class org.uncommons.maths.statistics.DataSet
The standard deviation is the square root of the variance.
getTotalCombinations() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
 
getTotalPermutations() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Returns the total number of unique permutations that can be generated for the given set of elements.
getVariance() - Method in class org.uncommons.maths.statistics.DataSet
Calculates the variance (a measure of statistical dispersion) of the data set.
greatestCommonDivisor(long, long) - Static method in class org.uncommons.maths.Maths
Determines the greatest common divisor of a pair of natural numbers using the Euclidean algorithm.
GROWTH_RATE - Static variable in class org.uncommons.maths.statistics.DataSet
 

H

HALF - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of a half (1/2 as a rational).
hashCode() - Method in class org.uncommons.maths.binary.BitString
Over-ridden to be consistent with BitString.equals(Object).
hashCode() - Method in class org.uncommons.maths.number.Rational
Over-ridden to be consistent with Rational.equals(Object).
hashCode() - Method in class org.uncommons.maths.random.Probability
Over-ridden to be consistent with Probability.equals(Object).
hasMore() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Are there more combinations?
hasMore() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Are there more permutations that have not yet been returned?
HEX_CHARS - Static variable in class org.uncommons.maths.binary.BinaryUtils
 

I

incrementCounter() - Method in class org.uncommons.maths.random.AESCounterRNG
 
index - Variable in class org.uncommons.maths.random.AESCounterRNG
 
index - Variable in class org.uncommons.maths.random.CMWC4096RNG
 
INSTANCE - Static variable in class org.uncommons.maths.random.DefaultSeedGenerator
Singleton instance.
INT_COUNT - Static variable in class org.uncommons.maths.random.DiehardInputGenerator
 
intValue() - Method in class org.uncommons.maths.number.Rational
Returns the integer equivalent of this rational number.
intValue() - Method in class org.uncommons.maths.random.Probability
Converting a fractional probability into an integer is not meaningful since all useful information is discarded.
iterator() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Provides a read-only iterator for iterating over the combinations generated by this object.
iterator() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Provides a read-only iterator for iterating over the permutations generated by this object.

J

JavaRNG - Class in org.uncommons.maths.random
This is the default JDK RNG extended to implement the RepeatableRNG interface (for consistency with the other RNGs in this package).
JavaRNG() - Constructor for class org.uncommons.maths.random.JavaRNG
Creates a new RNG and seeds it using the default seeding strategy.
JavaRNG(byte[]) - Constructor for class org.uncommons.maths.random.JavaRNG
Creates an RNG and seeds it with the specified seed data.
JavaRNG(SeedGenerator) - Constructor for class org.uncommons.maths.random.JavaRNG
Seed the RNG using the provided seed generation strategy.

K

keyData - Variable in class org.uncommons.maths.random.AESCounterRNG.AESKey
 

L

lastP - Variable in class org.uncommons.maths.random.BinomialGenerator
 
length - Variable in class org.uncommons.maths.binary.BitString
 
lock - Variable in class org.uncommons.maths.number.AdjustableNumberGenerator
 
lock - Variable in class org.uncommons.maths.random.AESCounterRNG
 
lock - Variable in class org.uncommons.maths.random.CellularAutomatonRNG
 
lock - Variable in class org.uncommons.maths.random.CMWC4096RNG
 
lock - Variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
lock - Variable in class org.uncommons.maths.random.XORShiftRNG
 
log(double, double) - Static method in class org.uncommons.maths.Maths
Calculate logarithms for arbitrary bases.
longValue() - Method in class org.uncommons.maths.number.Rational
Returns the integer equivalent of this rational number as a long.
longValue() - Method in class org.uncommons.maths.random.Probability
Converting a fractional probability into an integer is not meaningful since all useful information is discarded.
LOWER_MASK - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 

M

M - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
MAG01 - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
main(String[]) - Static method in class org.uncommons.maths.random.DiehardInputGenerator
 
Maths - Class in org.uncommons.maths
Maths operations not provided by java.lang.Math.
Maths() - Constructor for class org.uncommons.maths.Maths
 
MAX_LONG_FACTORIAL - Static variable in class org.uncommons.maths.Maths
 
MAX_REQUEST_SIZE - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
Random.org does not allow requests for more than 10k integers at once.
maximum - Variable in class org.uncommons.maths.statistics.DataSet
 
mean - Variable in class org.uncommons.maths.random.GaussianGenerator
 
mean - Variable in class org.uncommons.maths.random.PoissonGenerator
 
MersenneTwisterRNG - Class in org.uncommons.maths.random
Random number generator based on the Mersenne Twister algorithm developed by Makoto Matsumoto and Takuji Nishimura.
MersenneTwisterRNG() - Constructor for class org.uncommons.maths.random.MersenneTwisterRNG
Creates a new RNG and seeds it using the default seeding strategy.
MersenneTwisterRNG(byte[]) - Constructor for class org.uncommons.maths.random.MersenneTwisterRNG
Creates an RNG and seeds it with the specified seed data.
MersenneTwisterRNG(SeedGenerator) - Constructor for class org.uncommons.maths.random.MersenneTwisterRNG
Seed the RNG using the provided seed generation strategy.
minimum - Variable in class org.uncommons.maths.statistics.DataSet
 
minimumValue - Variable in class org.uncommons.maths.random.ContinuousUniformGenerator
 
minimumValue - Variable in class org.uncommons.maths.random.DiscreteUniformGenerator
 
mt - Variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
mtIndex - Variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
multiply(Rational) - Method in class org.uncommons.maths.number.Rational
Multiply this rational by the specified value and return the result as a new object (also a Rational).

N

n - Variable in class org.uncommons.maths.random.BinomialGenerator
 
N - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
next(int) - Method in class org.uncommons.maths.random.AESCounterRNG
next(int) - Method in class org.uncommons.maths.random.CellularAutomatonRNG
next(int) - Method in class org.uncommons.maths.random.CMWC4096RNG
next(int) - Method in class org.uncommons.maths.random.MersenneTwisterRNG
next(int) - Method in class org.uncommons.maths.random.XORShiftRNG
nextBlock() - Method in class org.uncommons.maths.random.AESCounterRNG
Generates a single 128-bit block (16 bytes).
nextCombinationAsArray() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Generate the next combination and return an array containing the appropriate elements.
nextCombinationAsArray(T[]) - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Generate the next combination and return an array containing the appropriate elements.
nextCombinationAsList() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Generate the next combination and return a list containing the appropriate elements.
nextCombinationAsList(List<T>) - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Generate the next combination and return a list containing the appropriate elements.
nextEvent(Random) - Method in class org.uncommons.maths.random.Probability
Generates an event according the probability value p.
nextPermutationAsArray() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Generate the next permutation and return an array containing the elements in the appropriate order.
nextPermutationAsArray(T[]) - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Generate the next permutation and return an array containing the elements in the appropriate order.
nextPermutationAsList() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Generate the next permutation and return a list containing the elements in the appropriate order.
nextPermutationAsList(List<T>) - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Generate the next permutation and return a list containing the elements in the appropriate order.
nextValue() - Method in class org.uncommons.maths.number.AdjustableNumberGenerator
nextValue() - Method in class org.uncommons.maths.number.ConstantGenerator
 
nextValue() - Method in interface org.uncommons.maths.number.NumberGenerator
 
nextValue() - Method in class org.uncommons.maths.random.BinomialGenerator
Generate the next binomial value from the current values of n and p.
nextValue() - Method in class org.uncommons.maths.random.ContinuousUniformGenerator
nextValue() - Method in class org.uncommons.maths.random.DiscreteUniformGenerator
nextValue() - Method in class org.uncommons.maths.random.ExponentialGenerator
Generate the next exponential value from the current value of rate.
nextValue() - Method in class org.uncommons.maths.random.GaussianGenerator
nextValue() - Method in class org.uncommons.maths.random.PoissonGenerator
NumberGenerator<T> - Interface in org.uncommons.maths.number
Interface for providing different types of sequences of numbers.
numerator - Variable in class org.uncommons.maths.number.Rational
 

O

ONE - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of one (1/1 as a rational).
ONE - Static variable in class org.uncommons.maths.random.Probability
Convenient constant representing a probability of one.
org.uncommons.maths - package org.uncommons.maths
A set of utility classes for mathematical operations.
org.uncommons.maths.binary - package org.uncommons.maths.binary
Classes for manipulating binary data.
org.uncommons.maths.combinatorics - package org.uncommons.maths.combinatorics
Utility classes for combinatorics.
org.uncommons.maths.number - package org.uncommons.maths.number
Custom numeric data types and classes for working with java.lang.Number and its sub-classes.
org.uncommons.maths.random - package 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.
org.uncommons.maths.statistics - package org.uncommons.maths.statistics
Utility classes for statistical analysis.

P

p - Variable in class org.uncommons.maths.random.BinomialGenerator
 
pBits - Variable in class org.uncommons.maths.random.BinomialGenerator
 
PermutationGenerator<T> - Class in org.uncommons.maths.combinatorics
Permutation generator for generating all permutations for all sets up to 20 elements in size.
PermutationGenerator(Collection<T>) - Constructor for class org.uncommons.maths.combinatorics.PermutationGenerator
Permutation generator that generates all possible orderings of the elements in the specified set.
PermutationGenerator(T[]) - Constructor for class org.uncommons.maths.combinatorics.PermutationGenerator
Permutation generator that generates all possible orderings of the elements in the specified set.
permutationIndices - Variable in class org.uncommons.maths.combinatorics.PermutationGenerator
 
PoissonGenerator - Class in org.uncommons.maths.random
Discrete random sequence that follows a Poisson distribution.
PoissonGenerator(double, Random) - Constructor for class org.uncommons.maths.random.PoissonGenerator
Creates a generator of Poisson-distributed values from a distribution with the specified mean.
PoissonGenerator(NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.PoissonGenerator
Creates a generator of Poisson-distributed values.
probability - Variable in class org.uncommons.maths.random.Probability
 
Probability - Class in org.uncommons.maths.random
Immutable value type for probabilities.
Probability(double) - Constructor for class org.uncommons.maths.random.Probability
 
product - Variable in class org.uncommons.maths.statistics.DataSet
 

Q

QUARTER - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of a quarter (1/4 as a rational).

R

raiseToPower(int, int) - Static method in class org.uncommons.maths.Maths
Calculate the first argument raised to the power of the second.
RANDOM_URL - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
The URL from which the random bytes are retrieved.
RandomDotOrgSeedGenerator - Class in org.uncommons.maths.random
Connects to the random.org website (via HTTPS) and downloads a set of random bits to use as seed data.
RandomDotOrgSeedGenerator() - Constructor for class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
range - Variable in class org.uncommons.maths.random.ContinuousUniformGenerator
 
range - Variable in class org.uncommons.maths.random.DiscreteUniformGenerator
 
rate - Variable in class org.uncommons.maths.random.ExponentialGenerator
 
Rational - Class in org.uncommons.maths.number
Immutable value object for representing a rational number (or vulgar fraction).
Rational(long) - Constructor for class org.uncommons.maths.number.Rational
Creates a rational value equivalent to the specified integer value.
Rational(long, long) - Constructor for class org.uncommons.maths.number.Rational
Creates a vulgar fraction with the specified numerator and denominator.
Rational(BigDecimal) - Constructor for class org.uncommons.maths.number.Rational
Creates a rational value equivalent to the specified decimal value.
reciprocalSum - Variable in class org.uncommons.maths.statistics.DataSet
 
refreshCache(int) - Method in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
remainingCombinations - Variable in class org.uncommons.maths.combinatorics.CombinationGenerator
 
remainingPermutations - Variable in class org.uncommons.maths.combinatorics.PermutationGenerator
 
RepeatableRNG - Interface in org.uncommons.maths.random
Deterministic random number generators are repeatable, which can prove useful for testing and validation.
reset() - Method in class org.uncommons.maths.combinatorics.CombinationGenerator
Reset the combination generator.
reset() - Method in class org.uncommons.maths.combinatorics.PermutationGenerator
Resets the generator state.
restrictRange(double, double, double) - Static method in class org.uncommons.maths.Maths
If the specified value is not greater than or equal to the specified minimum and less than or equal to the specified maximum, adjust it so that it is.
restrictRange(int, int, int) - Static method in class org.uncommons.maths.Maths
If the specified value is not greater than or equal to the specified minimum and less than or equal to the specified maximum, adjust it so that it is.
restrictRange(long, long, long) - Static method in class org.uncommons.maths.Maths
If the specified value is not greater than or equal to the specified minimum and less than or equal to the specified maximum, adjust it so that it is.
rng - Variable in class org.uncommons.maths.random.BinomialGenerator
 
rng - Variable in class org.uncommons.maths.random.ContinuousUniformGenerator
 
rng - Variable in class org.uncommons.maths.random.DiscreteUniformGenerator
 
rng - Variable in class org.uncommons.maths.random.ExponentialGenerator
 
rng - Variable in class org.uncommons.maths.random.GaussianGenerator
 
rng - Variable in class org.uncommons.maths.random.PoissonGenerator
 
RNG_RULE - Static variable in class org.uncommons.maths.random.CellularAutomatonRNG
 

S

SecureRandomSeedGenerator - Class in org.uncommons.maths.random
SeedGenerator implementation that uses Java's bundled SecureRandom RNG to generate random seed data.
SecureRandomSeedGenerator() - Constructor for class org.uncommons.maths.random.SecureRandomSeedGenerator
 
seed - Variable in class org.uncommons.maths.random.AESCounterRNG
 
seed - Variable in class org.uncommons.maths.random.CellularAutomatonRNG
 
seed - Variable in class org.uncommons.maths.random.CMWC4096RNG
 
seed - Variable in class org.uncommons.maths.random.JavaRNG
 
seed - Variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
seed - Variable in class org.uncommons.maths.random.XORShiftRNG
 
SEED_FACTOR1 - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
SEED_FACTOR2 - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
SEED_SIZE_BYTES - Static variable in class org.uncommons.maths.random.CellularAutomatonRNG
 
SEED_SIZE_BYTES - Static variable in class org.uncommons.maths.random.CMWC4096RNG
 
SEED_SIZE_BYTES - Static variable in class org.uncommons.maths.random.JavaRNG
 
SEED_SIZE_BYTES - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
SEED_SIZE_BYTES - Static variable in class org.uncommons.maths.random.XORShiftRNG
 
SeedException - Exception Class in org.uncommons.maths.random
Exception thrown by SeedGenerator implementations when they are unable to generate a new seed for an RNG.
SeedException(String) - Constructor for exception class org.uncommons.maths.random.SeedException
 
SeedException(String, Throwable) - Constructor for exception class org.uncommons.maths.random.SeedException
 
SeedGenerator - Interface in org.uncommons.maths.random
Strategy interface for seeding random number generators.
setBit(int, boolean) - Method in class org.uncommons.maths.binary.BitString
Sets the bit at the specified index.
setValue(T) - Method in class org.uncommons.maths.number.AdjustableNumberGenerator
Change the value that is returned by this generator.
SOURCE - Static variable in class org.uncommons.maths.random.SecureRandomSeedGenerator
 
standardDeviation - Variable in class org.uncommons.maths.random.GaussianGenerator
 
state - Variable in class org.uncommons.maths.random.CMWC4096RNG
 
state1 - Variable in class org.uncommons.maths.random.XORShiftRNG
 
state2 - Variable in class org.uncommons.maths.random.XORShiftRNG
 
state3 - Variable in class org.uncommons.maths.random.XORShiftRNG
 
state4 - Variable in class org.uncommons.maths.random.XORShiftRNG
 
state5 - Variable in class org.uncommons.maths.random.XORShiftRNG
 
subtract(Rational) - Method in class org.uncommons.maths.number.Rational
Subtract the specified value from this value and return the result as a new object (also a rational).
sumSquaredDiffs() - Method in class org.uncommons.maths.statistics.DataSet
Helper method for variance calculations.
swapBits(BitString, int, int) - Method in class org.uncommons.maths.binary.BitString
 
swapSubstring(BitString, int, int) - Method in class org.uncommons.maths.binary.BitString
An efficient method for exchanging data between two bit strings.

T

THIRD - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of a third (1/3 as a rational).
THREE_QUARTERS - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of three quarters (3/4 as a rational).
toNumber() - Method in class org.uncommons.maths.binary.BitString
Interprets this bit string as being a binary numeric value and returns the integer that it represents.
toString() - Method in class org.uncommons.maths.binary.BitString
Creates a textual representation of this bit string in big-endian order (index 0 is the right-most bit).
toString() - Method in class org.uncommons.maths.number.Rational
Returns a String representation of the rational number, expressed as a vulgar fraction (i.e.
toString() - Method in class org.uncommons.maths.random.DevRandomSeedGenerator
 
toString() - Method in class org.uncommons.maths.random.Probability
Formats the probability as a String.
toString() - Method in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
 
toString() - Method in class org.uncommons.maths.random.SecureRandomSeedGenerator
 
total - Variable in class org.uncommons.maths.statistics.DataSet
 
totalCombinations - Variable in class org.uncommons.maths.combinatorics.CombinationGenerator
 
totalPermutations - Variable in class org.uncommons.maths.combinatorics.PermutationGenerator
 
TWO_THIRDS - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of two thirds (2/3 as a rational).

U

updateStatsWithNewValue(double) - Method in class org.uncommons.maths.statistics.DataSet
 
UPPER_MASK - Static variable in class org.uncommons.maths.random.MersenneTwisterRNG
 
USER_AGENT - Static variable in class org.uncommons.maths.random.RandomDotOrgSeedGenerator
Used to identify the client to the random.org service.

V

value - Variable in class org.uncommons.maths.number.AdjustableNumberGenerator
 

W

WORD_LENGTH - Static variable in class org.uncommons.maths.binary.BitString
 

X

XORShiftRNG - Class in org.uncommons.maths.random
Very fast pseudo random number generator.
XORShiftRNG() - Constructor for class org.uncommons.maths.random.XORShiftRNG
Creates a new RNG and seeds it using the default seeding strategy.
XORShiftRNG(byte[]) - Constructor for class org.uncommons.maths.random.XORShiftRNG
Creates an RNG and seeds it with the specified seed data.
XORShiftRNG(SeedGenerator) - Constructor for class org.uncommons.maths.random.XORShiftRNG
Seed the RNG using the provided seed generation strategy.

Z

ZERO - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of zero (0/1 as a rational).
ZERO - Static variable in class org.uncommons.maths.random.Probability
Convenient constant representing a probability of zero.
A B C D E F G H I J K L M N O P Q R S T U V W X Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form