Class RunUpTest
java.lang.Object
de.uka.ipd.sdq.statistics.independence.RunUpTest
- All Implemented Interfaces:
IIndependenceTest
Implements the "run test" algorithm which tests a data sequence for independence.
Confer [Donald E. Knuth: The Art of Computer Programming. Seminumerical Algorithms]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the minimal number of samples necessary for a proper test result.booleantestIndependence(Collection<Double> samples) Tests, whether the sequence of samples appears to be independent.
-
Constructor Details
-
RunUpTest
public RunUpTest() -
RunUpTest
-
-
Method Details
-
testIndependence
Description copied from interface:IIndependenceTestTests, whether the sequence of samples appears to be independent.- Specified by:
testIndependencein interfaceIIndependenceTest- Parameters:
samples- the sequence of samples.- Returns:
- true, if the samples appears to be independent; false else.
-
getLowerSampleLimit
public int getLowerSampleLimit()Description copied from interface:IIndependenceTestReturns the minimal number of samples necessary for a proper test result. Avoid testing sequences smaller than the lower limit.- Specified by:
getLowerSampleLimitin interfaceIIndependenceTest- Returns:
- the minimal number of samples necessary for a proper test result.
-