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

Method outside

core/src/main/java/edu/mines/jtk/util/Almost.java:175–185  ·  view source on GitHub ↗

See if value is outside two other values. @param x Value to check @param x1 Value at one end of interval. @param x2 Value at other end of interval. @return Return 0 if x is between x1 and x2, -1 if outside and closer to x1, 1 if outside and closer to x2.

(final double x, final double x1, final double x2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testEverythingMethod · 0.95

Calls 1

betweenMethod · 0.95

Tested by 1

testEverythingMethod · 0.76