net.jxta.search.util
Class ISVector

java.lang.Object
  |
  +--net.jxta.search.util.ISVector

public class ISVector
extends java.lang.Object


Constructor Summary
ISVector()
           
 
Method Summary
static boolean equals(float[] a1, float[] a2, float tolerance)
          Compare to arrays of floats with respect to a specified tolerance.
static boolean equals(int[] a1, int[] a2)
          Compare array of ints
static boolean equals(java.lang.String[] a1, java.lang.String[] a2)
          Compare array of ints
static void print(double[] array, java.io.PrintStream ps)
           
static void print(double[] array, java.io.PrintStream ps, java.lang.String s)
           
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 print(java.lang.String[] array, java.io.PrintStream ps)
           
static void print(java.lang.String[] 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
 

Constructor Detail

ISVector

public ISVector()
Method Detail

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,
                         java.lang.String s)

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)

print

public static void print(java.lang.String[] array,
                         java.io.PrintStream ps,
                         java.lang.String s)

print

public static void print(java.lang.String[] array,
                         java.io.PrintStream ps)

equals

public static boolean equals(float[] a1,
                             float[] a2,
                             float tolerance)
                      throws java.lang.Exception
Compare to arrays of floats with respect to a specified tolerance. Equivalence with respect to the tolerance returns true, else false.
Parameters:
float - [] a1 an array of floats
float - [] a2 an array of floats
float - 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 array of ints
Parameters:
int - [] a1 an array of ints
int - [] a2 an array of ints
Returns:
boolean true if every entry is equal, false otherwise;

equals

public static boolean equals(java.lang.String[] a1,
                             java.lang.String[] a2)
                      throws java.lang.Exception
Compare array of ints
Parameters:
String - [] a1 an array of Strings
String - [] a2 an array of Strings
Returns:
boolean true if every entry is equal, false otherwise;