net.jxta.search.util
Class ISMatrix
java.lang.Object
|
+--net.jxta.search.util.ISMatrix
- public class ISMatrix
- extends java.lang.Object
Method Summary |
static boolean |
equals(float[][] a1,
float[][] a2,
float tolerance)
Compare 2D arrays of floats with respect to a specified
tolerance. |
static boolean |
equals(int[][] a1,
int[][] a2)
Compare 2D arrays of ints. |
static void |
print(double[][] array,
java.io.PrintStream ps)
|
static void |
print(float[][] array,
java.io.PrintStream ps)
|
static void |
print(float[][] array,
java.io.PrintStream ps,
java.lang.String s)
|
static void |
print(int[][] array,
java.io.PrintStream ps)
|
static void |
print(int[][] array,
java.io.PrintStream ps,
java.lang.String s)
|
static void |
setZero(float[][] array)
|
static void |
setZero(int[][] array)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISMatrix
public ISMatrix()
setZero
public static void setZero(int[][] array)
setZero
public static void setZero(float[][] array)
print
public static void print(double[][] array,
java.io.PrintStream ps)
print
public static void print(float[][] array,
java.io.PrintStream ps,
java.lang.String s)
print
public static void print(float[][] array,
java.io.PrintStream ps)
print
public static void print(int[][] array,
java.io.PrintStream ps,
java.lang.String s)
print
public static void print(int[][] array,
java.io.PrintStream ps)
equals
public static boolean equals(float[][] a1,
float[][] a2,
float tolerance)
throws java.lang.Exception
- Compare 2D arrays of floats with respect to a specified
tolerance. Equivalence with respect to the tolerance
returns true, else false.
- Parameters:
float
- [][] a1 a 2D array of floatsfloat
- [][] a2 a 2D array of floatsfloat
- eps a user specified tolerance value.- Returns:
- boolean If the difference between each entry of the
array is less than the tolerance value, returns
true, else returns false.
equals
public static boolean equals(int[][] a1,
int[][] a2)
throws java.lang.Exception
- Compare 2D arrays of ints.
- Parameters:
int
- [][] a1 a 2D array of intsint
- [][] a2 a 2D array of ints- Returns:
- boolean returns true if every entry is equal,
false otherwise.