Learn R Programming

RegimeChange (version 0.1.1)

mean_absolute_error: Mean Absolute Error for Changepoints

Description

Computes mean absolute error between matched changepoints. Unmatched changepoints are ignored.

Usage

mean_absolute_error(detected, true_cp)

Value

Mean absolute error

Arguments

detected

Vector of detected changepoint locations

true_cp

Vector of true changepoint locations