|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.ma2.MAMath
public class MAMath
Element by element algebra on Arrays
Index| Nested Class Summary | |
|---|---|
static class |
MAMath.MinMax
Holds a minimum and maximum value. |
| Constructor Summary | |
|---|---|
MAMath()
|
|
| Method Summary | |
|---|---|
static Array |
add(Array a,
Array b)
Add elements of two arrays together, allocating the result array. |
static void |
addDouble(Array result,
Array a,
Array b)
Add elements of two arrays together as doubles, place sum in the result array. |
static boolean |
conformable(Array a,
Array b)
Check that two arrays are conformable. |
static boolean |
conformable(int[] shapeA,
int[] shapeB)
Check that two array shapes are conformable. |
static void |
copy(Array result,
Array a)
copy array a to array result, the result array will be in canonical order The operation type is taken from the type of a. |
static void |
copyBoolean(Array result,
Array a)
copy array a to array result as bytes The array a and result must be type boolean |
static void |
copyByte(Array result,
Array a)
copy array a to array result as bytes The values from the array a are converted to byte (if needed), and then converted to the type of result (if needed). |
static void |
copyChar(Array result,
Array a)
copy array a to array result as char The values from the array a are converted to char (if needed), and then converted to the type of result (if needed). |
static void |
copyDouble(Array result,
Array a)
copy array a to array result as doubles The values from the arrays a are converted to double (if needed), and then converted to the type of result (if needed). |
static void |
copyFloat(Array result,
Array a)
copy array a to array result as floats The values from the arrays a are converted to float (if needed), and then converted to the type of result (if needed). |
static void |
copyInt(Array result,
Array a)
copy array a to array result as integers The values from the arrays a are converted to integer (if needed), and then converted to the type of result (if needed). |
static void |
copyLong(Array result,
Array a)
copy array a to array result as longs The values from the array a are converted to long (if needed), and then converted to the type of result (if needed). |
static void |
copyObject(Array result,
Array a)
copy array a to array result as an Object The array a and result must be type object |
static void |
copyShort(Array result,
Array a)
copy array a to array result as shorts The values from the array a are converted to short (if needed), and then converted to the type of result (if needed). |
static double |
getMaximum(Array a)
|
static double |
getMaximumSkipMissingData(Array a,
double missingValue)
|
static double |
getMinimum(Array a)
|
static double |
getMinimumSkipMissingData(Array a,
double missingValue)
|
static MAMath.MinMax |
getMinMax(Array a)
|
static MAMath.MinMax |
getMinMaxSkipMissingData(Array a,
double missingValue)
|
static int |
reducedRank(int[] shape)
Calculate the reduced rank of this shape, by subtracting dimensions with length 1 |
static void |
setDouble(Array result,
double val)
Set all the elements of this array to the given double value. |
static double |
sumDouble(Array a)
sum all of the elements of array a as doubles. |
static double |
sumDoubleSkipMissingData(Array a,
double missingValue)
sum all of the elements of array a as doubles. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MAMath()
| Method Detail |
|---|
public static Array add(Array a,
Array b)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and b are not conformable
java.lang.UnsupportedOperationException - dont support this data type yet
public static void addDouble(Array result,
Array a,
Array b)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a,b,and result are not conformable
public static boolean conformable(Array a,
Array b)
public static boolean conformable(int[] shapeA,
int[] shapeB)
public static void copy(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and b are not conformable
java.lang.UnsupportedOperationException - dont support this data type yet
public static void copyDouble(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyFloat(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyLong(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyInt(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyShort(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyChar(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyByte(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyBoolean(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformable
public static void copyObject(Array result,
Array a)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - a and result are not conformablepublic static int reducedRank(int[] shape)
public static double getMinimum(Array a)
public static double getMaximum(Array a)
public static MAMath.MinMax getMinMax(Array a)
public static double getMinimumSkipMissingData(Array a,
double missingValue)
public static double getMaximumSkipMissingData(Array a,
double missingValue)
public static MAMath.MinMax getMinMaxSkipMissingData(Array a,
double missingValue)
public static void setDouble(Array result,
double val)
public static double sumDouble(Array a)
public static double sumDoubleSkipMissingData(Array a,
double missingValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||