java.lang.Object
es.upm.fi.cig.multictbnc.conceptdriftdetection.PageHinkleyTest

public class PageHinkleyTest extends Object
Implements the Page Hinkley Test for concept drift detection.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PageHinkleyTest(double magnitudeThreshold, double detectionThreshold, boolean resetAfterConceptDrift, Integer windowSize)
    Initializes the Page Hinkley Test with the specified parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    detectChange(double newValue)
    Detects concept drifts based on a new observation.
    double
    Returns the last Page Hinkley value calculated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PageHinkleyTest

      public PageHinkleyTest(double magnitudeThreshold, double detectionThreshold, boolean resetAfterConceptDrift, Integer windowSize)
      Initializes the Page Hinkley Test with the specified parameters.
      Parameters:
      magnitudeThreshold - magnitude threshold
      detectionThreshold - detection threshold
      resetAfterConceptDrift - whether to reset statistics after detecting a concept drift
      windowSize - size of the sliding window for calculations
  • Method Details

    • detectChange

      public boolean detectChange(double newValue)
      Detects concept drifts based on a new observation.
      Parameters:
      newValue - the new observation value
      Returns:
      true if concept drift is detected, false otherwise
    • getPageHinkleyValue

      public double getPageHinkleyValue()
      Returns the last Page Hinkley value calculated.
      Returns:
      Page Hinkley value