Module es.upm.fi.cig.multictbnc
Class PageHinkleyTest
java.lang.Object
es.upm.fi.cig.multictbnc.conceptdriftdetection.PageHinkleyTest
Implements the Page Hinkley Test for concept drift detection.
-
Constructor Summary
ConstructorDescriptionPageHinkleyTest
(double magnitudeThreshold, double detectionThreshold, boolean resetAfterConceptDrift, Integer windowSize) Initializes the Page Hinkley Test with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
detectChange
(double newValue) Detects concept drifts based on a new observation.double
Returns the last Page Hinkley value calculated.
-
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 thresholddetectionThreshold
- detection thresholdresetAfterConceptDrift
- whether to reset statistics after detecting a concept driftwindowSize
- 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
-