jsat.testing.onesample
Class TTest
- java.lang.Object
-
- jsat.testing.onesample.TTest
-
- All Implemented Interfaces:
- OneSampleTest, StatisticTest
public class TTest extends java.lang.Object implements OneSampleTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jsat.testing.StatisticTest
StatisticTest.H1
-
-
Constructor Summary
Constructors Constructor and Description TTest()TTest(double hypothMean, double sampleMean, double sampleDev, double sampleSize)TTest(StatisticTest.H1 h1, double hypothMean, double sampleMean, double sampleDev, double sampleSize)TTest(StatisticTest.H1 h1, double hypothMean, Vec data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAltVar()java.lang.StringgetNullVar()java.lang.String[]getTestVars()doublepValue()voidsetAltHypothesis(StatisticTest.H1 h1)voidsetAltVar(double altVar)voidsetTestUsingData(Vec data)Sets the statistics that will be tested against an alternate hypothesis.voidsetTestVars(double[] testVars)java.lang.StringtestName()StatisticTest.H1[]validAlternate()
-
-
-
Constructor Detail
-
TTest
public TTest(StatisticTest.H1 h1, double hypothMean, double sampleMean, double sampleDev, double sampleSize)
-
TTest
public TTest(double hypothMean, double sampleMean, double sampleDev, double sampleSize)
-
TTest
public TTest(StatisticTest.H1 h1, double hypothMean, Vec data)
-
TTest
public TTest()
-
-
Method Detail
-
setTestUsingData
public void setTestUsingData(Vec data)
Description copied from interface:OneSampleTestSets the statistics that will be tested against an alternate hypothesis.- Specified by:
setTestUsingDatain interfaceOneSampleTest
-
getTestVars
public java.lang.String[] getTestVars()
- Specified by:
getTestVarsin interfaceOneSampleTest
-
setTestVars
public void setTestVars(double[] testVars)
- Specified by:
setTestVarsin interfaceOneSampleTest
-
getAltVar
public java.lang.String getAltVar()
- Specified by:
getAltVarin interfaceOneSampleTest
-
setAltVar
public void setAltVar(double altVar)
- Specified by:
setAltVarin interfaceOneSampleTest
-
getNullVar
public java.lang.String getNullVar()
- Specified by:
getNullVarin interfaceOneSampleTest
-
validAlternate
public StatisticTest.H1[] validAlternate()
- Specified by:
validAlternatein interfaceStatisticTest- Returns:
- an array of the valid alternate hypothesis for this test
-
setAltHypothesis
public void setAltHypothesis(StatisticTest.H1 h1)
- Specified by:
setAltHypothesisin interfaceStatisticTest
-
testName
public java.lang.String testName()
- Specified by:
testNamein interfaceStatisticTest- Returns:
- a descriptive name for the statistical test
-
pValue
public double pValue()
- Specified by:
pValuein interfaceStatisticTest
-
-
DataMelt 3.0 © DataMelt by jWork.ORG