|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjncc20.ArrayUtils
public final class ArrayUtils
Utilities for computing average, sum, standard deviation etc. of arrays, ignoring missing data, denoted as -9999.
Constructor Summary | |
---|---|
ArrayUtils()
|
Method Summary | |
---|---|
(package private) static double |
arrayAvg(double[] ProvidedArray)
Computes the average of the array, ignoring missing data (denoted as -9999); if all data are missing, returns -9999. |
(package private) static double |
arrayAvg(int[] ProvidedArray)
Computes the average of the array, ignoring missing data (denoted as -9999). |
(package private) static double |
arrayStDev(double[] ProvidedArray)
Computes the StdDev of the array, ignoring missing data (denoted as -9999); if all data are missing, returns -9999. |
(package private) static double |
arrayStDev(int[] ProvidedArray)
Computes the StdDev of the array, ignoring missing data (denoted as -9999). |
(package private) static double[] |
arraySum(double[] ProvidedArray)
Computes the sum of the array, ignoring missing data (dentoed as -9999). |
(package private) static int[] |
arraySum(int[] ProvidedArray)
Computes the sum of the array, ignoring missing data (denoted as -9999). |
(package private) static double[] |
arraySumProduct(double[] Array1,
double[] Array2)
Computes Sum_i(Arr1[i]*Arr2[i]); term Arr1[j]*Arr2[j] is not included in the computation if Arr1[j] or Arr2[j] are -9999. |
(package private) static int[] |
arraySumProduct(int[] Array1,
int[] Array2)
Computes Sum_i(Arr1[i]*Arr2[i]); term Arr1[j]*Arr2[j] is not included in the computation if Arr1[j] or Arr2[j] are -9999. |
(package private) static double[] |
arrList2Array(java.util.ArrayList<java.lang.Double> ProvidedArrayList)
Converts an ArrayList into an array. |
(package private) static int[] |
arrList2Array(java.util.ArrayList<java.lang.Integer> ProvidedArrayList)
Converts an ArrayList into an array. |
(package private) static double |
max(double[] providedArray)
Returns the maximum of an array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayUtils()
Method Detail |
---|
static double arrayAvg(double[] ProvidedArray)
static double arrayAvg(int[] ProvidedArray)
static double arrayStDev(double[] ProvidedArray)
static double arrayStDev(int[] ProvidedArray)
static double[] arraySum(double[] ProvidedArray)
static int[] arraySum(int[] ProvidedArray)
static double[] arraySumProduct(double[] Array1, double[] Array2)
static int[] arraySumProduct(int[] Array1, int[] Array2)
static double[] arrList2Array(java.util.ArrayList<java.lang.Double> ProvidedArrayList)
static int[] arrList2Array(java.util.ArrayList<java.lang.Integer> ProvidedArrayList)
static double max(double[] providedArray)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |