data_gen2D: data_gen2D

Description Usage Arguments Value Examples

View source: R/FPOPdim2.R

Description

Generation of data of dimension 2 with a given values of means and changepoints

Usage

1
data_gen2D(n, chpts = NULL, means1 = 0, means2 = 0, noise = 1)

Arguments

n

number of data point.

chpts

a vector of increasing changepoint indices. Last index is always less than 'n'. By default, 'chpts = NULL' (the data without changepoints).

means1

vector of successive means1 for data1, by default 'means1 = 0'.

means2

vector of successive means2 for data2, by default 'means2 = 0'.

noise

standard deviation of an additional normal noise, by default 'noise = 1'.

Value

matrix of data of dimension 2 x n with a given values of means by the segmentation.

Examples

1
Data <- data_gen2D(n = 10, chpts = NULL, means1 = 0, means2 = 0, noise = 1)

lpishchagina/FPOPdim2 documentation built on Dec. 21, 2021, 11:50 a.m.