|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutils.ArrayUtilities
public class ArrayUtilities
additional utility functions for operating with arrays
| Constructor Summary | |
|---|---|
ArrayUtilities()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
debug2DArray(double[][] array)
get a debug string displaying two dimensional arrays |
static java.lang.String |
debug2DArray(float[][] array)
get a debug string displaying two dimensional arrays |
static java.lang.String |
debug2DArray(int[][] array)
get a debug string displaying two dimensional arrays |
static float[][] |
double2float(double[][] array)
convert double[][] to float[][] |
static void |
fillWith(double[][] destination,
double value)
fill all indices in destination with the specified value |
static double |
getAverage(double[][] haystack)
get the average of all elements in a two dimensional array. |
static double |
getMaximum(double[][] haystack)
get the maximum entry of a twodimensional array. |
static double |
getMean(double[] haystack)
get the mean value for the specified one-dimensional array |
static double |
getStd(double[] haystack)
get the standard deviation of the specified array. |
static void |
multiArrayCopy(double[][] source,
double[][] destination)
copy a two-dimensional array into another array. |
static void |
multiArrayCopy(float[][] source,
float[][] destination)
copy a two-dimensional array into another array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayUtilities()
| Method Detail |
|---|
public static float[][] double2float(double[][] array)
array -
public static java.lang.String debug2DArray(double[][] array)
array - the array to be displayed
public static java.lang.String debug2DArray(float[][] array)
array - the array to be displayed
public static java.lang.String debug2DArray(int[][] array)
array - - the array to be displayed
public static void fillWith(double[][] destination,
double value)
destination - - the array to be filledvalue - - the value that should fill all indices in destination
public static void multiArrayCopy(double[][] source,
double[][] destination)
source - - the array to be copieddestination - - the array where to copy
public static void multiArrayCopy(float[][] source,
float[][] destination)
source - - the array to be copieddestination - - the array where to copypublic static double getMaximum(double[][] haystack)
haystack - the array to be searched
public static double getAverage(double[][] haystack)
haystack - the array to get the average for
public static double getStd(double[] haystack)
haystack - the array to get the sd for
public static double getMean(double[] haystack)
haystack - the array to get the mean for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||