MCPcopy Create free account
hub / github.com/dhale/jtk / isMonotonic

Method isMonotonic

core/src/main/java/edu/mines/jtk/util/ArrayMath.java:8347–8349  ·  view source on GitHub ↗

Determines whether the specified array is monotonic. The array is monotonic if its elements a[i] either increase or decrease (but not both) with array index i, with no equal values. @param a the array. @return true, if monotonic (or a.length<2); false, otherwise.

(byte[] a)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

testMonotonicMethod · 0.80
BilinearInterpolator2Method · 0.80
BicubicInterpolator2Method · 0.80
CubicInterpolatorMethod · 0.80
TricubicInterpolator3Method · 0.80

Calls 2

isIncreasingMethod · 0.95
isDecreasingMethod · 0.95

Tested by 1

testMonotonicMethod · 0.64