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
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the minimal number of samples necessary for a proper test result.boolean
testIndependence
(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:IIndependenceTest
Tests, whether the sequence of samples appears to be independent.- Specified by:
testIndependence
in 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:IIndependenceTest
Returns the minimal number of samples necessary for a proper test result. Avoid testing sequences smaller than the lower limit.- Specified by:
getLowerSampleLimit
in interfaceIIndependenceTest
- Returns:
- the minimal number of samples necessary for a proper test result.
-