MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / shuffle

Method shuffle

JSAT/src/jsat/utils/ArrayUtils.java:26–29  ·  view source on GitHub ↗

Swaps values in the given array @param array the array to swap values in @param rand the source of randomness for shuffling

(int[] array, Random rand)

Source from the content-addressed store, hash-verified

24 * @param rand the source of randomness for shuffling
25 */
26 static public void shuffle(int[] array, Random rand)
27 {
28 shuffle(array, 0, array.length, rand);
29 }
30
31 /**
32 * Shuffles the values in the given array

Callers 15

trainSOMMethod · 0.95
testContains_ObjectMethod · 0.80
testContains_intMethod · 0.80
testDecreaseKeyMethod · 0.80
testSearchR_VecMethod · 0.80
randomSplitMethod · 0.80
CoverTreeMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
stratSetMethod · 0.80
trainEpochsMethod · 0.80
trainMethod · 0.80

Calls 1

swapMethod · 0.95

Tested by 4

testContains_ObjectMethod · 0.64
testContains_intMethod · 0.64
testDecreaseKeyMethod · 0.64
testSearchR_VecMethod · 0.64