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

Method findMinAndMax

ij/src/main/java/ij/gui/ProfilePlot.java:328–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 }
327
328 void findMinAndMax() {
329 if (profile==null) return;
330 double min = profile[0];
331 double max = profile[0];
332 double value;
333 for (int i=1; i<profile.length; i++) {
334 value = profile[i];
335 if (value<min)
336 min = value;
337 else if (value>max)
338 max = value;
339 }
340 this.min = min;
341 this.max = max;
342 }
343
344
345}

Callers 2

getMinMethod · 0.95
getMaxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected