edu.ucla.stat.SOCR.analyses.util
Enum IntervalType
java.lang.Object
java.lang.Enum<IntervalType>
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>
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 |
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
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()