edu.ucla.stat.SOCR.analyses.model
Class NormalPower

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.model.NormalPower
All Implemented Interfaces:
Analysis

public class NormalPower
extends java.lang.Object
implements Analysis


Field Summary
 double alpha
           
 double beta
           
static double[] criticalPoints
           
static java.lang.String HYPOTHESIS_TYPE_GT
           
static java.lang.String HYPOTHESIS_TYPE_LT
           
static java.lang.String HYPOTHESIS_TYPE_NE
           
 java.lang.String hypothesisType
           
 double[] meanPlotPoints
           
 double mu0
           
 double muA
           
 double[][] multipleMeanPlotPoints
           
 double[][] multiplePowerPlotPoints
           
 int numberOfCurves
           
 int numberPoints
           
 int numberPointsHalf
           
 double power
           
 double[] powerPlotPoints
           
 double pv
           
 int sampleSize
           
 double sigma
           
static java.lang.String Y_DATA_TYPE
           
 double z
           
 
Constructor Summary
NormalPower()
           
NormalPower(double mu0, double x, double sigma)
           
NormalPower(double power, double sigma, double alpha, double mu0, double muA, java.lang.String hypothesisType)
           
NormalPower(int sampleSize, double sigma, double alpha, double mu0, double muA, java.lang.String hypothesisType)
           
 
Method Summary
 Result analyze(Data data, short analysisType)
           
 java.lang.String getAnalysisType()
           
 double getEnhancePlotParameter(int sampleSize)
           
 double[] getMeanPlotPoints()
           
 double[][] getMultipleMeanPlotPoints()
           
 double[][] getMultiplePowerPlotPoints()
           
 Result getNormalAnalysis()
           
 double getPowerOneSidedGT()
           
 double getPowerOneSidedLT()
           
 double[] getPowerPlotPoints()
           
 NormalPowerResult getPowerResult()
           
 double getPowerTwoSidedNE()
           
 NormalPowerResult getSampleSizeResult()
           
static void main(java.lang.String[] args)
           
 void setNumberOfCurves(int input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Y_DATA_TYPE

public static final java.lang.String Y_DATA_TYPE
See Also:
Constant Field Values

HYPOTHESIS_TYPE_LT

public static final java.lang.String HYPOTHESIS_TYPE_LT
See Also:
Constant Field Values

HYPOTHESIS_TYPE_GT

public static final java.lang.String HYPOTHESIS_TYPE_GT
See Also:
Constant Field Values

HYPOTHESIS_TYPE_NE

public static final java.lang.String HYPOTHESIS_TYPE_NE
See Also:
Constant Field Values

numberPointsHalf

public int numberPointsHalf

numberPoints

public int numberPoints

numberOfCurves

public int numberOfCurves

sampleSize

public int sampleSize

sigma

public double sigma

alpha

public double alpha

power

public double power

z

public double z

pv

public double pv

hypothesisType

public java.lang.String hypothesisType

beta

public double beta

mu0

public double mu0

muA

public double muA

meanPlotPoints

public double[] meanPlotPoints

powerPlotPoints

public double[] powerPlotPoints

multipleMeanPlotPoints

public double[][] multipleMeanPlotPoints

multiplePowerPlotPoints

public double[][] multiplePowerPlotPoints

criticalPoints

public static double[] criticalPoints
Constructor Detail

NormalPower

public NormalPower()

NormalPower

public NormalPower(double mu0,
                   double x,
                   double sigma)

NormalPower

public NormalPower(int sampleSize,
                   double sigma,
                   double alpha,
                   double mu0,
                   double muA,
                   java.lang.String hypothesisType)

NormalPower

public NormalPower(double power,
                   double sigma,
                   double alpha,
                   double mu0,
                   double muA,
                   java.lang.String hypothesisType)
Method Detail

getAnalysisType

public java.lang.String getAnalysisType()
Specified by:
getAnalysisType in interface Analysis

getNormalAnalysis

public Result getNormalAnalysis()

analyze

public Result analyze(Data data,
                      short analysisType)
               throws WrongAnalysisException,
                      DataIsEmptyException
Specified by:
analyze in interface Analysis
Throws:
WrongAnalysisException
DataIsEmptyException

getPowerOneSidedGT

public double getPowerOneSidedGT()

getPowerOneSidedLT

public double getPowerOneSidedLT()

getPowerTwoSidedNE

public double getPowerTwoSidedNE()

getMeanPlotPoints

public double[] getMeanPlotPoints()

getPowerPlotPoints

public double[] getPowerPlotPoints()

getMultipleMeanPlotPoints

public double[][] getMultipleMeanPlotPoints()

getMultiplePowerPlotPoints

public double[][] getMultiplePowerPlotPoints()

getSampleSizeResult

public NormalPowerResult getSampleSizeResult()

getEnhancePlotParameter

public double getEnhancePlotParameter(int sampleSize)

getPowerResult

public NormalPowerResult getPowerResult()

setNumberOfCurves

public void setNumberOfCurves(int input)

main

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