public class ZTest extends Object implements OneSampleTest
StatisticTest.H1
Constructor and Description |
---|
ZTest() |
ZTest(double sampleMean,
double sampleDev,
int sampleSize) |
ZTest(StatisticTest.H1 h1,
double sampleMean,
double sampleDev,
int sampleSize) |
ZTest(StatisticTest.H1 h1,
Vec data) |
ZTest(Vec data) |
Modifier and Type | Method and Description |
---|---|
String |
getAltVar() |
String |
getNullVar() |
String[] |
getTestVars() |
double |
pValue() |
void |
setAltHypothesis(StatisticTest.H1 h1) |
void |
setAltVar(double altVar) |
void |
setTestUsingData(Vec data)
Sets the statistics that will be tested against an alternate hypothesis.
|
void |
setTestVars(double[] testVars) |
String |
testName() |
StatisticTest.H1[] |
validAlternate() |
public ZTest()
public ZTest(double sampleMean, double sampleDev, int sampleSize)
public ZTest(StatisticTest.H1 h1, double sampleMean, double sampleDev, int sampleSize)
public ZTest(Vec data)
public ZTest(StatisticTest.H1 h1, Vec data)
public StatisticTest.H1[] validAlternate()
validAlternate
in interface StatisticTest
public String testName()
testName
in interface StatisticTest
public void setTestUsingData(Vec data)
OneSampleTest
setTestUsingData
in interface OneSampleTest
public String[] getTestVars()
getTestVars
in interface OneSampleTest
public void setTestVars(double[] testVars)
setTestVars
in interface OneSampleTest
public String getAltVar()
getAltVar
in interface OneSampleTest
public void setAltVar(double altVar)
setAltVar
in interface OneSampleTest
public double pValue()
pValue
in interface StatisticTest
public void setAltHypothesis(StatisticTest.H1 h1)
setAltHypothesis
in interface StatisticTest
public String getNullVar()
getNullVar
in interface OneSampleTest
Copyright © 2017. All rights reserved.