edu.ucla.stat.SOCR.analyses.util
Enum IntervalType

java.lang.Object
  extended by java.lang.Enum<IntervalType>
      extended by edu.ucla.stat.SOCR.analyses.util.IntervalType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IntervalType>

public enum IntervalType
extends java.lang.Enum<IntervalType>


Enum Constant Summary
proportion_approx
           
proportion_exact
           
proportion_wald
           
sigma
           
sigma2
           
xbar_sigmaKnown
           
xbar_sigmaUnknown
           
 
Method Summary
 double[] BootStrapData2SigleArray()
           
protected static java.util.List convertTo1DArray(double[] oneDArray)
           
protected static java.util.List convertTo1DArray(double[][] twoDArray)
           
 double[][] getBootStrapData()
           
 double[] getBootStrapMeans()
           
 double[] getBootStrapPHat()
           
 int getBootStrapSize()
           
 java.lang.String getBootStrapSizeString()
           
 double[] getBootStrapVariance()
           
abstract  double[] getConfidenceIntervals()
           
 int getCvIndex()
           
 double getKnownStdDev()
           
 double getKnownVarianceValue()
           
 java.lang.Double getLeftCutOffValue()
           
static double getMaxValueFrom1DArray(double[] dataArray)
           
static double getMaxValueFrom2DArray(double[][] dataArray)
           
 double getMean()
           
static double getMinValueFrom1DArray(double[] dataArray)
           
static double getMinValueFrom2DArray(double[][] dataArray)
           
 java.lang.Double getRightCutOffValue()
           
 double[] getSampleData()
           
 int getSampleSize()
           
 double getStdDev()
           
abstract  double getX_bar()
           
 double scaleProportionData(double ciValue)
           
 void setBootStrap(boolean flag)
           
 void setBootStrapSize(int b)
           
 void setCutOffValue(java.lang.Double left, java.lang.Double right)
           
 void setKnownVarianceValue(java.lang.Double v)
           
 void setSampleData(double[] input)
           
 void setSampleData(java.lang.String[] input)
           
abstract  java.lang.String toString()
           
 void updateIntervalType(int sampleSize, int cvIndex, double[] samples)
           
static IntervalType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IntervalType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

xbar_sigmaKnown

public static final IntervalType xbar_sigmaKnown

xbar_sigmaUnknown

public static final IntervalType xbar_sigmaUnknown

proportion_wald

public static final IntervalType proportion_wald

proportion_approx

public static final IntervalType proportion_approx

proportion_exact

public static final IntervalType proportion_exact

sigma

public static final IntervalType sigma

sigma2

public static final IntervalType sigma2
Method Detail

values

public static IntervalType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IntervalType c : IntervalType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IntervalType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

setBootStrap

public void setBootStrap(boolean flag)

updateIntervalType

public void updateIntervalType(int sampleSize,
                               int cvIndex,
                               double[] samples)

setSampleData

public final void setSampleData(double[] input)

setSampleData

public final void setSampleData(java.lang.String[] input)

getBootStrapData

public double[][] getBootStrapData()

getBootStrapSize

public int getBootStrapSize()

getBootStrapSizeString

public java.lang.String getBootStrapSizeString()

setBootStrapSize

public void setBootStrapSize(int b)

getBootStrapPHat

public double[] getBootStrapPHat()

getMean

public final double getMean()

getBootStrapMeans

public double[] getBootStrapMeans()

getStdDev

public final double getStdDev()

getBootStrapVariance

public final double[] getBootStrapVariance()

getKnownStdDev

public final double getKnownStdDev()

convertTo1DArray

protected static java.util.List convertTo1DArray(double[][] twoDArray)

convertTo1DArray

protected static java.util.List convertTo1DArray(double[] oneDArray)

getMaxValueFrom2DArray

public static double getMaxValueFrom2DArray(double[][] dataArray)

getMinValueFrom2DArray

public static double getMinValueFrom2DArray(double[][] dataArray)

getMaxValueFrom1DArray

public static double getMaxValueFrom1DArray(double[] dataArray)

getMinValueFrom1DArray

public static double getMinValueFrom1DArray(double[] dataArray)

scaleProportionData

public final double scaleProportionData(double ciValue)

getSampleSize

public int getSampleSize()

getSampleData

public double[] getSampleData()

setKnownVarianceValue

public void setKnownVarianceValue(java.lang.Double v)

getKnownVarianceValue

public double getKnownVarianceValue()

setCutOffValue

public void setCutOffValue(java.lang.Double left,
                           java.lang.Double right)

getLeftCutOffValue

public java.lang.Double getLeftCutOffValue()

getRightCutOffValue

public java.lang.Double getRightCutOffValue()

getCvIndex

public int getCvIndex()

BootStrapData2SigleArray

public double[] BootStrapData2SigleArray()

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Enum<IntervalType>

getConfidenceIntervals

public abstract double[] getConfidenceIntervals()

getX_bar

public abstract double getX_bar()