MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / addToArray

Method addToArray

ij/src/main/java/ij/util/Tools.java:143–146  ·  view source on GitHub ↗

Adds a number to all array elements

(float[] a, float value)

Source from the content-addressed store, hash-verified

141
142 /** Adds a number to all array elements */
143 public static void addToArray(float[] a, float value) {
144 for (int i=0; i<a.length; i++)
145 a[i] += value;
146 }
147
148 /** Returns the index of the first array element equal to the key,
149 * or -1 if no such element.

Callers 2

createRoiMethod · 0.95
getFloatPolygonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected