Class RunUpTest
- java.lang.Object
-
- de.uka.ipd.sdq.statistics.independence.RunUpTest
-
- All Implemented Interfaces:
IIndependenceTest
public class RunUpTest extends Object implements 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 Constructor Description RunUpTest()
RunUpTest(IContinousPDFFactory pdfFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLowerSampleLimit()
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 Detail
-
RunUpTest
public RunUpTest()
-
RunUpTest
public RunUpTest(IContinousPDFFactory pdfFactory)
-
-
Method Detail
-
testIndependence
public boolean testIndependence(Collection<Double> samples)
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.
-
-