Package noaa.coastwatch.util.expression
Class JELParser.ExtrasLibrary
java.lang.Object
noaa.coastwatch.util.expression.JELParser.ExtrasLibrary
- Enclosing class:
- JELParser
Implements a number of additional constants and methods for
JEL expressions to use.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
acosh
(double x) Computes the inverse hyperbolic cosine of a value.static double
asinh
(double x) Computes the inverse hyperbolic sin of a value.static double
atanh
(double x) Computes the inverse hyperbolic tangent of a value.static double
dist
(double lat1, double lon1, double lat2, double lon2) Computes the physical distance between two locations in kilometers.static double
getValue
(int index, double[] array) Gets the specified value from the array, or NaN if the index is -1.static float
getValue
(int index, float[] array) Gets the specified value from the array, or NaN if the index is -1.static int
indexOfMax
(double[] values) Gets the index of the maximum value in the array, or -1 if there is no maximum (ie: all values are NaN).static int
indexOfMin
(double[] values) Gets the index of the minimum value in the array, or -1 if there is no minimum (ie: all values are NaN).static boolean
isNaN
(double value) Determines if a double is the NaN value.static double
sum
(double[] values) Computes a sum of values.
-
Field Details
-
NaN
public static double NaNThe Not-a-Number value as a double.
-
-
Constructor Details
-
ExtrasLibrary
public ExtrasLibrary()
-
-
Method Details
-
asinh
public static double asinh(double x) Computes the inverse hyperbolic sin of a value. -
acosh
public static double acosh(double x) Computes the inverse hyperbolic cosine of a value. -
atanh
public static double atanh(double x) Computes the inverse hyperbolic tangent of a value. -
sum
public static double sum(double[] values) Computes a sum of values. -
isNaN
public static boolean isNaN(double value) Determines if a double is the NaN value. -
dist
public static double dist(double lat1, double lon1, double lat2, double lon2) Computes the physical distance between two locations in kilometers. -
indexOfMin
public static int indexOfMin(double[] values) Gets the index of the minimum value in the array, or -1 if there is no minimum (ie: all values are NaN). -
indexOfMax
public static int indexOfMax(double[] values) Gets the index of the maximum value in the array, or -1 if there is no maximum (ie: all values are NaN). -
getValue
public static double getValue(int index, double[] array) Gets the specified value from the array, or NaN if the index is -1. -
getValue
public static float getValue(int index, float[] array) Gets the specified value from the array, or NaN if the index is -1.
-