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

Method apply

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

Applies this index table to the specified target, putting target into the same ordering as this IndexTable. @throws RuntimeException if the length of the target array is not the same as the index table

(double[] target)

Source from the content-addressed store, hash-verified

277 * @throws RuntimeException if the length of the target array is not the same as the index table
278 */
279 public void apply(double[] target)
280 {
281 //use DoubleList view b/d we are only using set ops, so we wont run into an issue of re-allocating the array
282 apply(DoubleList.view(target, target.length), new DoubleList(target.length));
283 }
284
285 /**
286 * Applies this index table to the specified target, putting {@code target}

Callers 4

testApply_doubleMethod · 0.95
testApply_ListMethod · 0.95
setUsingDataMethod · 0.95

Calls 7

viewMethod · 0.95
lengthMethod · 0.95
indexMethod · 0.95
sizeMethod · 0.65
addMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by 2

testApply_doubleMethod · 0.76
testApply_ListMethod · 0.76