MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / min

Method min

src/org/opensourcephysics/numerics/ArrayLib.java:50–60  ·  view source on GitHub ↗

Find the minimum value in an array. @param a the array @param indMin the array minimum index @return the minimum value in the array

(double[] a)

Source from the content-addressed store, hash-verified

48 * @return the minimum value in the array
49 */
50 public static final double min(double[] a) {
51 double min = Double.POSITIVE_INFINITY;
52 for ( int i=0; i<a.length; ++i ) {
53 if ( a[i] < min )
54 {
55 min = a[i];
56 IndexMin = i;
57 }
58 }
59 return min;
60 }
61
62 /**
63 * @param IndexMax the array minimum index

Callers 15

sMethod · 0.80
mediainfo.jsFile · 0.80
setFontLevelMethod · 0.80
setTopComponentMethod · 0.80
setFontLevelMethod · 0.80
addColumnsMethod · 0.80
isDuplicateMethod · 0.80
refreshAreaMethod · 0.80
formatMethod · 0.80
setSizeMethod · 0.80
getXMinMethod · 0.80
findNearestXIndexMethod · 0.80

Calls

no outgoing calls

Tested by 3

findNearestXIndexMethod · 0.64
findNearestXIndex0Method · 0.64
paintComponentMethod · 0.64