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

Method mutableDivide

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

Mutates this /= c This method should be overloaded for a serious implementation. @param c the constant to divide by

(double c)

Source from the content-addressed store, hash-verified

410 * @param c the constant to divide by
411 */
412 public void mutableDivide(double c)
413 {
414 for(int i = 0; i < length(); i++)
415 set(i, get(i)/c);
416 }
417
418 /**
419 * Returns a copy of this array with the values moved around so that they are in sorted order

Callers 15

generate3DimIn10Method · 0.95
divideMethod · 0.95
normalizeMethod · 0.95
trainCMethod · 0.95
trainCMethod · 0.95
runMethod · 0.95
updateMethod · 0.95
trainMethod · 0.95
mutableTransformMethod · 0.95
fitMethod · 0.95
testMutableDivideMethod · 0.45
testMutableDivideMethod · 0.45

Calls 3

lengthMethod · 0.95
setMethod · 0.95
getMethod · 0.95

Tested by 7

generate3DimIn10Method · 0.76
testMutableDivideMethod · 0.36
testMutableDivideMethod · 0.36
testMutableDivideMethod · 0.36
fMethod · 0.36