|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.tools.CommonMethods
This class is to implement the common operations on two arrays such as comparisons, copy, reset, calculating lengths, get sum of all elements.
Constructor Summary | |
CommonMethods()
|
Method Summary | |
static double |
averageArray(double[][][] values)
|
static int |
calcGsItemLength(short[][] gsItemDimInfo,
short[][] featLengths)
|
static int |
calcLength(double[] arr)
|
static int |
calcLength(double[][] arr)
|
static int |
calcLength(double[][][] arr)
|
static void |
calcOffsets(short[] offsets,
short[] dimVals)
|
static short[] |
calcWmItemLengths(int size,
short[] wmItemNums,
short[][][] wmItemDimInfos,
short[][] featLengths)
|
static short |
contain(double[] a1,
short[] a2)
|
static short |
contain(short[] a1,
short[] a2)
|
static boolean[] |
copy(boolean[] values)
COPY mehods |
static boolean[][] |
copy(boolean[][] values)
|
static boolean[][][] |
copy(boolean[][][] values)
|
static double[] |
copy(double[] values)
|
static double[][] |
copy(double[][] values)
|
static double[][][] |
copy(double[][][] values)
|
static double[][][][] |
copy(double[][][][] values)
|
static short[] |
copy(short[] values)
|
static short[][] |
copy(short[][] values)
|
static short[][][] |
copy(short[][][] values)
|
static short[][][][] |
copy(short[][][][] values)
|
static short[][][][][] |
copy(short[][][][][] values)
|
static void |
copy(short[][] dest,
short[][][] sou)
|
static java.lang.String[] |
copy(java.lang.String[] values)
|
static java.lang.String[][] |
copy(java.lang.String[][] values)
|
static java.lang.String[][][] |
copy(java.lang.String[][][] values)
|
static int |
getDiffNum(Feature[] f1,
Feature[] f2)
|
static int |
getMaxValueIdx(double[] values)
|
static double |
getSum(double[] arr)
|
static float |
getSum(float[] arr)
|
static int |
getSum(int[] arr)
|
static int |
getSum(short[] arr)
|
static int |
isEqual(double[][] arr1,
double[][] arr2)
|
static boolean |
isEqual(double[] arr1,
double[] arr2)
|
static int |
isEqual(float[][] arr1,
float[][] arr2)
|
static boolean |
isEqual(float[] arr1,
float[] arr2)
|
static int |
isEqual(int[][] arr1,
int[][] arr2)
we assume that there is no order in active dimensional values in one dimension. |
static boolean |
isEqual(int[] arr1,
int[] arr2)
|
static int |
isEqual(short[][] arr1,
short[][] arr2)
we assume that there is no order in active dimensional values in one dimension. |
static boolean |
isEqual(short[] arr1,
short[] arr2)
|
static void |
resetArray(boolean[][] arr,
boolean val)
|
static void |
resetArray(double[][] arr,
double val)
|
static void |
resetArray(double[] arr,
double val)
|
static void |
resetArray(int[][][][] arr,
int val)
|
static void |
resetArray(int[][][] arr,
int val)
|
static void |
resetArray(int[][] arr,
int val)
|
static void |
resetArray(short[][][][] arr,
int val)
|
static void |
resetArray(short[][][] arr,
int val)
|
static void |
resetArray(short[][] arr,
int val)
|
static void |
resetArray(short[] arr,
int val)
|
static void |
showValues(double[] arr)
|
static void |
showValues(short[] arr)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommonMethods()
Method Detail |
public static boolean isEqual(short[] arr1, short[] arr2)
public static boolean isEqual(int[] arr1, int[] arr2)
public static boolean isEqual(float[] arr1, float[] arr2)
public static boolean isEqual(double[] arr1, double[] arr2)
public static int isEqual(short[][] arr1, short[][] arr2)
public static int isEqual(int[][] arr1, int[][] arr2)
public static int isEqual(float[][] arr1, float[][] arr2)
public static int isEqual(double[][] arr1, double[][] arr2)
public static short contain(short[] a1, short[] a2)
public static short contain(double[] a1, short[] a2)
public static int getSum(short[] arr)
public static int getSum(int[] arr)
public static float getSum(float[] arr)
public static double getSum(double[] arr)
public static int getMaxValueIdx(double[] values)
public static int getDiffNum(Feature[] f1, Feature[] f2)
public static void calcOffsets(short[] offsets, short[] dimVals)
public static int calcLength(double[] arr)
public static int calcLength(double[][] arr)
public static int calcLength(double[][][] arr)
public static void resetArray(short[] arr, int val)
public static void resetArray(double[] arr, double val)
public static void resetArray(boolean[][] arr, boolean val)
public static void resetArray(short[][] arr, int val)
public static void resetArray(double[][] arr, double val)
public static void resetArray(short[][][] arr, int val)
public static void resetArray(short[][][][] arr, int val)
public static void resetArray(int[][] arr, int val)
public static void resetArray(int[][][] arr, int val)
public static void resetArray(int[][][][] arr, int val)
public static double averageArray(double[][][] values)
public static void showValues(short[] arr)
public static void showValues(double[] arr)
public static boolean[] copy(boolean[] values)
public static short[] copy(short[] values)
public static double[] copy(double[] values)
public static java.lang.String[] copy(java.lang.String[] values)
public static boolean[][] copy(boolean[][] values)
public static short[][] copy(short[][] values)
public static double[][] copy(double[][] values)
public static java.lang.String[][] copy(java.lang.String[][] values)
public static boolean[][][] copy(boolean[][][] values)
public static short[][][] copy(short[][][] values)
public static double[][][] copy(double[][][] values)
public static java.lang.String[][][] copy(java.lang.String[][][] values)
public static short[][][][] copy(short[][][][] values)
public static double[][][][] copy(double[][][][] values)
public static short[][][][][] copy(short[][][][][] values)
public static void copy(short[][] dest, short[][][] sou)
public static int calcGsItemLength(short[][] gsItemDimInfo, short[][] featLengths)
public static short[] calcWmItemLengths(int size, short[] wmItemNums, short[][][] wmItemDimInfos, short[][] featLengths)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |