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 Details

  • Method Details

    • 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 interface IIndependenceTest
      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 interface IIndependenceTest
      Returns:
      the minimal number of samples necessary for a proper test result.