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

Method set

JSAT/src/jsat/utils/DoubleList.java:152–158  ·  view source on GitHub ↗

Operates exactly as #set(int, java.lang.Double) @param index the index to set @param element the value to set @return the previous value at said index

(int index, double element)

Source from the content-addressed store, hash-verified

150 * @return the previous value at said index
151 */
152 public double set(int index, double element)
153 {
154 boundsCheck(index);
155 double ret = get(index);
156 array[index] = element;
157 return ret;
158 }
159
160 @Override
161 public Double set(int index, Double element)

Callers 3

addMethod · 0.95
clusterMethod · 0.95
evaluateMethod · 0.95

Calls 2

boundsCheckMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected