base

No-reset policy protocol and shared helpers.

class pysatl_cpd.benchmark.online.noreset.metrics.policy.base.NoResetPolicy(*args, **kwargs)[source]

Bases: Protocol, Generic

Transforms an infinite-threshold run into a threshold-marked run.

apply(run, threshold)[source]

Apply the policy to a run at a specific threshold.

Parameters:
Return type:

SingleRun[NoResetDetectionTrace[TypeVar(StateT, bound= OnlineAlgorithmState)], TypeVar(ProviderT, bound= LabeledData[Any, Any])]

__init__(*args, **kwargs)