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

Method swap

JSAT/src/jsat/utils/IndexTable.java:242–245  ·  view source on GitHub ↗

Swaps the given indices in the index table. @param i the second index to swap @param j the first index to swap

(int i, int j)

Source from the content-addressed store, hash-verified

240 * @param j the first index to swap
241 */
242 public void swap(int i, int j)
243 {
244 Collections.swap(index, i, j);
245 }
246
247 /**
248 * Given the index <tt>i</tt> into what would be the sorted array, the index in the unsorted original array is returned. <br>

Callers 2

testSwapMethod · 0.95
sortByEigenValueMethod · 0.95

Calls

no outgoing calls

Tested by 1

testSwapMethod · 0.76