max_run_length

Max-run-length Bayesian change-point score function.

class pysatl_cpd.algorithms.online.bayesian.component.cpf.max_run_length.MaxRunLengthCPF(*args, **kwargs)[source]

Bases: IBayesianCPF

Return one minus the probability of the maximal run length state.

calculate(run_length_log_posterior)[source]

Convert run-length log-posterior to a change-point score.

Parameters:

run_length_log_posterior (GenericAlias[double]) – Log-posterior probabilities for each run length.

Returns:

One minus the probability of the longest run length.

Return type:

float

clear()[source]

Reset internal state.

Return type:

None