FPOP2D: FPOP2D

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Detecting changepoints using the functional pruning optimal partitioning method (fpop) in bivariate time series.

Usage

1
FPOP2D(data1, data2, penalty, type)

Arguments

data1

is a vector of data1(a univariate time series).

data2

is a vector of data2(a univariate time series).

penalty

is a value of penalty (a non-negative real number).

type

is a value defining the type of pruning (0 = PELT, 1 = FPOP(intersection of sets), 2 = FPOP(intersection of set \ union of set ).

Value

a list of 4 elements = (changepoints, means1, means2, globalCost).

changepoints

is the vector of changepoints.

means1

is the vector of successive means for data1.

means2

is the vector of successive means for data2.

globalCost

is a number equal to the global cost.

#

Examples

1
FPOP2D (data1 = c(0,0,0,1,1,1), data2 = c(2,2,2,0,0,0), penalty = 2*log(6),  type = 1) 

lpishchagina/fpop2D documentation built on March 14, 2021, 11:05 p.m.