Uncommons Maths API
(Version 1.2.3)
A B C D E F G H I J L M N O P Q R S T X Z

A

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 extends Number> - 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(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(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(byte[]) - Constructor for class org.uncommons.maths.random.AESCounterRNG
Creates an RNG and seeds it with the specified seed data.
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).

B

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.
BinomialGenerator - Class in org.uncommons.maths.random
Discrete random sequence that follows a binomial distribution.
BinomialGenerator(NumberGenerator<Integer>, NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.BinomialGenerator
Creates a generator of binomially-distributed values.
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.
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.

C

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(SeedGenerator) - Constructor for class org.uncommons.maths.random.CellularAutomatonRNG
Seed the RNG using the provided seed generation strategy.
CellularAutomatonRNG(byte[]) - Constructor for class org.uncommons.maths.random.CellularAutomatonRNG
Creates an RNG and seeds it with the specified seed data.
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(SeedGenerator) - Constructor for class org.uncommons.maths.random.CMWC4096RNG
Seed the RNG using the provided seed generation strategy.
CMWC4096RNG(byte[]) - Constructor for class org.uncommons.maths.random.CMWC4096RNG
Creates an RNG and seeds it with the specified seed data.
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(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(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.
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.
ConstantGenerator<T extends Number> - 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.
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.
countSetBits() - Method in class org.uncommons.maths.binary.BitString
 
countUnsetBits() - Method in class org.uncommons.maths.binary.BitString
 

D

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(int) - Constructor for class org.uncommons.maths.statistics.DataSet
Creates an empty data set with the specified initial capacity.
DataSet(double[]) - Constructor for class org.uncommons.maths.statistics.DataSet
Creates a data set and populates it with the specified values.
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.
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.
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

EmptyDataSetException - Exception 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 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(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.
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.

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(NumberGenerator<Double>, NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.GaussianGenerator
Creates a generator of normally-distributed values.
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.
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.
getAggregate() - Method in class org.uncommons.maths.statistics.DataSet
 
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.
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.

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?

I

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(SeedGenerator) - Constructor for class org.uncommons.maths.random.JavaRNG
Seed the RNG using the provided seed generation strategy.
JavaRNG(byte[]) - Constructor for class org.uncommons.maths.random.JavaRNG
Creates an RNG and seeds it with the specified seed data.

L

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.

M

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.
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(SeedGenerator) - Constructor for class org.uncommons.maths.random.MersenneTwisterRNG
Seed the RNG using the provided seed generation strategy.
MersenneTwisterRNG(byte[]) - Constructor for class org.uncommons.maths.random.MersenneTwisterRNG
Creates an RNG and seeds it with the specified seed data.
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

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
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 extends Number> - Interface in org.uncommons.maths.number
Interface for providing different types of sequences of numbers.

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

PermutationGenerator<T> - Class in org.uncommons.maths.combinatorics
Permutation generator for generating all permutations for all sets up to 20 elements in size.
PermutationGenerator(T[]) - Constructor for class org.uncommons.maths.combinatorics.PermutationGenerator
Permutation generator that generates all possible orderings of the elements in the specified set.
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.
PoissonGenerator - Class in org.uncommons.maths.random
Discrete random sequence that follows a Poisson distribution.
PoissonGenerator(NumberGenerator<Double>, Random) - Constructor for class org.uncommons.maths.random.PoissonGenerator
Creates a generator of Poisson-distributed values.
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.
Probability - Class in org.uncommons.maths.random
Immutable value type for probabilities.
Probability(double) - Constructor for class org.uncommons.maths.random.Probability
 

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.
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
 
Rational - Class in org.uncommons.maths.number
Immutable value object for representing a rational number (or vulgar fraction).
Rational(long, long) - Constructor for class org.uncommons.maths.number.Rational
Creates a vulgar fraction with the specified numerator and denominator.
Rational(long) - Constructor for class org.uncommons.maths.number.Rational
Creates a rational value equivalent to the specified integer value.
Rational(BigDecimal) - Constructor for class org.uncommons.maths.number.Rational
Creates a rational value equivalent to the specified decimal value.
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(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.
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.

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
 
SeedException - Exception 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 org.uncommons.maths.random.SeedException
 
SeedException(String, Throwable) - Constructor for exception 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.
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).
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
 
TWO_THIRDS - Static variable in class org.uncommons.maths.number.Rational
Convenient constant representing a value of two thirds (2/3 as a rational).

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(SeedGenerator) - Constructor for class org.uncommons.maths.random.XORShiftRNG
Seed the RNG using the provided seed generation strategy.
XORShiftRNG(byte[]) - Constructor for class org.uncommons.maths.random.XORShiftRNG
Creates an RNG and seeds it with the specified seed data.

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 L M N O P Q R S T X Z
Uncommons Maths API
(Version 1.2.3)