cpf

Protocol definition for Bayesian change-point score functions.

class pysatl_cpd.algorithms.online.bayesian.protocol.cpf.IBayesianCPF(*args, **kwargs)[source]

Bases: Protocol

Interface for scalar Bayesian change-point score functions.

calculate(run_length_log_posterior)[source]

Convert the current run-length posterior into a scalar score.

Parameters:

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

Returns:

Scalar change-point score for the current step.

Return type:

float

clear()[source]

Reset any internal score state.

Return type:

None

__init__(*args, **kwargs)