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 IndexPair
    Modifier and Type
    Method
    Description
    final IndexPair
    EnhancedRandomGenerator.nextIntPair(int n)
    Generates a random sample of 2 integers, without replacement, from the set of integers in the interval [0, n).
    static IndexPair
    RandomIndexer.nextIntPair(int n)
    Generates a random sample of 2 integers, without replacement, from the set of integers in the interval [0, n).
    static IndexPair
    RandomIndexer.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 IndexPair
    EnhancedRandomGenerator.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 IndexPair
    RandomIndexer.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 IndexPair
    RandomIndexer.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 IndexPair
    EnhancedRandomGenerator.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 IndexPair
    RandomIndexer.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 IndexPair
    RandomIndexer.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 IndexPair
    EnhancedRandomGenerator.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 IndexPair
    RandomIndexer.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 IndexPair
    RandomIndexer.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 IndexPair
    Modifier and Type
    Method
    Description
    EnhancedRandomGenerator.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.