Learn R Programming

RegimeChange (version 0.1.1)

covering_metric: Covering Metric

Description

Measures how well detected segments cover true segments using IoU.

Usage

covering_metric(detected, true_cp, n)

Value

Covering metric (0 to 1)

Arguments

detected

Vector of detected changepoint locations

true_cp

Vector of true changepoint locations

n

Total number of observations