|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.func.Arrays
public class Arrays
Functions which operate on array-valued cells. You can only use these functions on values which are already arrays. In most cases that means on values in table columns which are declared as array-valued. FITS and VOTable tables can have columns which contain array values, but other formats such as CSV cannot.
Method Summary | |
---|---|
static double |
maximum(Object array)
Returns the largest of the non-blank elements in the array. |
static double |
mean(Object array)
Returns the mean of all the non-blank elements in the array. |
static double |
minimum(Object array)
Returns the smallest of the non-blank elements in the array. |
static int |
size(Object array)
Returns the number of elements in the array. |
static double |
sum(Object array)
Returns the sum of all the non-blank elements in the array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double sum(Object array)
array
is not a numeric array, null
is returned.
array
- array of numbers
array
public static double mean(Object array)
array
is not a numeric array, null
is returned.
array
- array of numbers
array
public static double minimum(Object array)
array
is not a numeric array, null
is returned.
array
- array of numbers
array
public static double maximum(Object array)
array
is not a numeric array, null
is returned.
array
- array of numbers
array
public static int size(Object array)
array
is not an array, zero is returned.
array
- array
array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |