- CellularAutomatonRNG - Class in org.uncommons.maths.random
-
- 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
-
- 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
-
- countSetBits() - Method in class org.uncommons.maths.binary.BitString
-
- countUnsetBits() - Method in class org.uncommons.maths.binary.BitString
-
- GaussianGenerator - Class in org.uncommons.maths.random
-
- 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.
- 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.
- 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.