Learn R Programming

ocd (version 1.1)

setStatus: Set changepoint detector status

Description

Set changepoint detector status

Usage

setStatus(detector, new_status)

Arguments

detector

Object of class 'Changepoint Detector'

new_status

'estimating' or 'monitoring'

Value

Updated object detector

Details

If the status is set to 'estimating', new observations are used to update current estimate of pre-change mean and standard deviation. If the status is set to 'monitoring', new observations are used to check if mean change has occurred.