edu.ucla.stat.SOCR.analyses.command
Class Utility

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.command.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 double[] exp(double[] input)
           
static java.lang.String getErrorMessage(java.lang.String analysisType)
           
static double[] innerProduct(double[] x, double[] y)
           
static double[] listToDoubleArray(java.util.ArrayList<java.lang.Double> list)
           
static int[] listToIntArray(java.util.ArrayList<java.lang.Integer> list)
           
static void main(java.lang.String[] args)
           
static double max(double[] input)
           
static double min(double[] input)
           
static double prod(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<java.lang.Double> list)

listToIntArray

public static int[] listToIntArray(java.util.ArrayList<java.lang.Integer> 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)

main

public static void main(java.lang.String[] args)

getErrorMessage

public static java.lang.String getErrorMessage(java.lang.String analysisType)