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

Method sortedCopy

JSAT/src/jsat/linear/Vec.java:422–427  ·  view source on GitHub ↗

Returns a copy of this array with the values moved around so that they are in sorted order @return a new array in sorted order

()

Source from the content-addressed store, hash-verified

420 * @return a new array in sorted order
421 */
422 public Vec sortedCopy()
423 {
424 double[] arrayCopy = arrayCopy();
425 Arrays.sort(arrayCopy);
426 return new DenseVector(arrayCopy);
427 }
428
429 /**
430 * Returns the minimum value stored in this vector

Callers 5

medianMethod · 0.95
testSortedCopyMethod · 0.45
setUsingDataMethod · 0.45
setUsingDataMethod · 0.45
KSTestMethod · 0.45

Calls 2

arrayCopyMethod · 0.95
sortMethod · 0.45

Tested by 2

testSortedCopyMethod · 0.36
KSTestMethod · 0.36