getData: Processing a new data point

Description Usage Arguments Details Value Methods (by class) See Also

View source: R/ocd.R

Description

This is the main function for the 'ChangepointDetector' class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
getData(detector, x_new)

## S3 method for class 'OCD'
getData(detector, x_new)

## S3 method for class 'Mei'
getData(detector, x_new)

## S3 method for class 'XS'
getData(detector, x_new)

## S3 method for class 'Chan'
getData(detector, x_new)

Arguments

detector

Object of class 'Changepoint Detector'

x_new

A new data point. It must be of the same dimension as specified in the data_dim attribute of detector.

Details

If the status of the detector object is 'estimating', the new data point is used to update the current estimate of pre-change mean and standard deviation. If the status of the detector object is monitoring', the new data point is used to detect if a mean change has occurred.

Value

Updated object detector

Methods (by class)

See Also

setBaselineMean for updating the pre-change mean estimate, setBaselineSD for updating the standard deviation estimate, checkChange for checking for change.


ocd documentation built on Oct. 23, 2020, 5:56 p.m.

Related to getData in ocd...