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

Method min

ij/src/main/java/ij/util/ArrayUtil.java:206–209  ·  view source on GitHub ↗
(double[] arr)

Source from the content-addressed store, hash-verified

204 }
205
206 @AstroImageJ(reason = "Avoid instance creation")
207 public static double min(double[] arr) {
208 return Arrays.stream(arr).filter(d -> !Double.isNaN(d)).min().orElse(Double.NaN);
209 }
210
211 @AstroImageJ(reason = "Avoid instance creation")
212 public static double max(double[] arr) {

Callers 15

tableMethod · 0.95
binDataErrMethod · 0.95
makeInvertedCompositeMethod · 0.45
doMathMethod · 0.45
math2Method · 0.45
makeSimplexMethod · 0.45
doFitMethod · 0.45
getPlotMethod · 0.45
getMetaDataSizeMethod · 0.45
readMethod · 0.45
removeLastMethod · 0.45

Calls 1

filterMethod · 0.45

Tested by 6

testDatabyteMethod · 0.36
testDataDoubleMethod · 0.36
testDataFloatMethod · 0.36
testDataIntMethod · 0.36
testDataLongMethod · 0.36
testDataShortMethod · 0.36