Learn R Programming

RegimeChange (version 0.1.1)

precision_score: Precision Score with Tolerance

Description

Proportion of detected changepoints that are within tolerance of a true one.

Usage

precision_score(detected, true_cp, tolerance = 5)

Value

Precision (0 to 1)

Arguments

detected

Vector of detected changepoint locations

true_cp

Vector of true changepoint locations

tolerance

Maximum distance for a match