edu.ucla.stat.SOCR.util
Class Utility
java.lang.Object
edu.ucla.stat.SOCR.util.Utility
public class Utility
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utility
public Utility()
digitTruncator
public static double digitTruncator(double input)
digitAugmentator
public static java.lang.String digitAugmentator(double input)
sign
public static int sign(double input)
sign
public static int[] sign(double[] input)
prod
public static double prod(double[] input)
min
public static double min(double[] input)
max
public static double max(double[] input)
exp
public static double[] exp(double[] input)
listToDoubleArray
public static double[] listToDoubleArray(java.util.ArrayList list)
listToIntArray
public static int[] listToIntArray(java.util.ArrayList list)
listToByteArray
public static byte[] listToByteArray(java.util.ArrayList list)
innerProduct
public static double[] innerProduct(double[] x,
double[] y)
throws WrongDataFormatException
- Throws:
WrongDataFormatException
truncateArray
public static double[] truncateArray(double[] input,
int start,
int end)
throws WrongDataFormatException
- Throws:
WrongDataFormatException
truncateDigits
public static java.lang.String[][] truncateDigits(double[][] input,
int numberDigits)
reverseDoubleIndex
public static double[][] reverseDoubleIndex(double[][] input)
print
public static void print(double[] array,
java.lang.String name)
print
public static void print(double[][] array,
java.lang.String name)
getLogArray
public static double[] getLogArray(double[] input)
getLog10Array
public static double[] getLog10Array(double[] input)
log10
public static double log10(double input)
doubleArrayToList
public static java.util.ArrayList doubleArrayToList(double[] input)
findKolmogorovProb
public static double findKolmogorovProb(double z)
getStudentTCriticalPoint95CI
public static double getStudentTCriticalPoint95CI(int df)
getFlignerKilleenNormalQuantile
public static double getFlignerKilleenNormalQuantile(int totalSize,
double rank)
main
public static void main(java.lang.String[] args)