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 intgetLowerSampleLimit()Returns 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 Detail
-
RunUpTest
public RunUpTest()
-
RunUpTest
public RunUpTest(IContinousPDFFactory pdfFactory)
-
-
Method Detail
-
testIndependence
public boolean testIndependence(Collection<Double> samples)
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.
-
-