Uses of Record Class
org.cicirello.math.rand.IndexPair
Packages that use IndexPair
Package
Description
Collection of classes related to random number generation.
-
Uses of IndexPair in org.cicirello.math.rand
Methods in org.cicirello.math.rand that return IndexPairModifier and TypeMethodDescriptionfinal IndexPairEnhancedRandomGenerator.nextIntPair(int n) Generates a random sample of 2 integers, without replacement, from the set of integers in the interval [0, n).static IndexPairRandomIndexer.nextIntPair(int n) Generates a random sample of 2 integers, without replacement, from the set of integers in the interval [0, n).static IndexPairRandomIndexer.nextIntPair(int n, RandomGenerator gen) Generates a random sample of 2 integers, without replacement, from the set of integers in the interval [0, n).final IndexPairEnhancedRandomGenerator.nextSortedIntPair(int n) Generates a random sample of 2 integers (i, j) without replacement, from the set of integers in the interval [0, n).static IndexPairRandomIndexer.nextSortedIntPair(int n) Generates a random sample of 2 integers (i, j) without replacement, from the set of integers in the interval [0, n).static IndexPairRandomIndexer.nextSortedIntPair(int n, RandomGenerator gen) Generates a random sample of 2 integers (i, j) without replacement, from the set of integers in the interval [0, n).final IndexPairEnhancedRandomGenerator.nextSortedWindowedIntPair(int n, int window) Generates a random sample of 2 integers, i, j, without replacement, from the set of integers in the interval [0, n), such that |i-j| ≤ window, and sorted such that i is less than j.static IndexPairRandomIndexer.nextSortedWindowedIntPair(int n, int window) Generates a random sample of 2 integers (i, j) without replacement, from the set of integers in the interval [0, n), such that |i-j| ≤ window, and sorted such that i is less than j.static IndexPairRandomIndexer.nextSortedWindowedIntPair(int n, int window, RandomGenerator gen) Generates a random sample of 2 integers (i, j) without replacement, from the set of integers in the interval [0, n), such that |i-j| ≤ window, and sorted such that i is less than j.final IndexPairEnhancedRandomGenerator.nextWindowedIntPair(int n, int window) Generates a random sample of 2 integers, i, j, without replacement, from the set of integers in the interval [0, n), such that |i-j| ≤ window.static IndexPairRandomIndexer.nextWindowedIntPair(int n, int window) Generates a random sample of 2 integers, i, j, without replacement, from the set of integers in the interval [0, n), such that |i-j| ≤ window.static IndexPairRandomIndexer.nextWindowedIntPair(int n, int window, RandomGenerator gen) Generates a random sample of 2 integers, i, j, without replacement, from the set of integers in the interval [0, n), such that |i-j| ≤ window.Methods in org.cicirello.math.rand that return types with arguments of type IndexPairModifier and TypeMethodDescriptionEnhancedRandomGenerator.pairs(int n) Returns an effectively unlimited stream of pseudorandom pairs of int values, without replacement, from the interval [0, n).EnhancedRandomGenerator.pairs(long streamSize, int n) Returns a stream of pseudorandom pairs of int values, without replacement, from the interval [0, n).EnhancedRandomGenerator.sortedPairs(int n) Returns an effectively unlimited stream of pseudorandom pairs of int values, without replacement, from the interval [0, n).EnhancedRandomGenerator.sortedPairs(long streamSize, int n) Returns a stream of pseudorandom pairs of int values, without replacement, from the interval [0, n).EnhancedRandomGenerator.sortedWindowedPairs(int n, int window) Returns an effectively unlimited stream of pseudorandom pairs (i, j) of int values, without replacement, from the interval [0, n), such that |i-j| ≤ window, and sorted such that i is less than j.EnhancedRandomGenerator.sortedWindowedPairs(long streamSize, int n, int window) Returns a stream of pseudorandom pairs of int values (i, j), without replacement, from the interval [0, n), such that |i-j| ≤ window, and sorted such that i is less than j.EnhancedRandomGenerator.windowedPairs(int n, int window) Returns an effectively unlimited stream of pseudorandom pairs (i, j) of int values, without replacement, from the interval [0, n), such that |i-j| ≤ window.EnhancedRandomGenerator.windowedPairs(long streamSize, int n, int window) Returns a stream of pseudorandom pairs of int values (i, j), without replacement, from the interval [0, n), such that |i-j| ≤ window.