last_cp: Location of the last changepoint

Description Usage Arguments Value

Description

Location of the last changepoint

Usage

1
last_cp(eta)

Arguments

eta

A multiple changepoint configuration, i.e., model. It is a 0/1 indicator vector of length n, with the first p elemenets always being 0.

Value

An iterger, the location of the last changepoint, or NA if there are no changepoints.


yingboli/BayesMDL documentation built on May 29, 2019, 12:18 p.m.