GenData2D: GenData2D

Description Usage Arguments Value Examples

View source: R/OptPartitioning2D.R

Description

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

Usage

1
GenData2D(n, changepoints, means1, means2, noise1 = 1, noise2 = 1)

Arguments

n

number of data point.

changepoints

a vector of increasing changepoint indices (last element is always n!).

means1

vector of successive means1 for data1.

means2

vector of successive means2 for data2.

noise1

standard deviation of an additional normal noise (for data1).

noise2

standard deviation of an additional normal noise (for data2).

Value

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

Examples

1
GenData2D (n = 10, changepoints = c(2, 4, 6, 8, 10), means1 = c (0, 1, 0, 1, 0), means2 = (1, 2, 3, 4, 5), noise1 = 1, noise2 = 1)

lpishchagina/OptPartitioning2D documentation built on Feb. 9, 2021, 9:17 p.m.