edu.ucla.stat.SOCR.util
Class Utility

java.lang.Object
  extended by edu.ucla.stat.SOCR.util.Utility

public class Utility
extends java.lang.Object


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

Constructor Detail

Utility

public Utility()
Method Detail

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)