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

Method removeD

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

Operates exactly as #remove(int) @param index the index to remove @return the value removed

(int index)

Source from the content-addressed store, hash-verified

196 * @return the value removed
197 */
198 public double removeD(int index)
199 {
200 boundsCheck(index);
201 double ret = array[index];
202 for(int i = index; i < end-1; i++)
203 array[i] = array[i+1];
204 decreaseSize(1);
205 return ret;
206 }
207
208 @Override
209 public Double remove(int index)

Callers 1

removeMethod · 0.95

Calls 2

boundsCheckMethod · 0.95
decreaseSizeMethod · 0.95

Tested by

no test coverage detected