dataG1: One-dimensional gaussian segmentation

Description Usage Arguments Value Examples

Description

Simulating a one-dimenstional segmentation with a given number of segments

Usage

1
2
dataG1(mean = c(0.5, 0, -0.5, 0), tau = c(0.25, 0.5, 0.75, 1), sigma = 1,
  n = 100)

Arguments

mean

Vector of means (mean of consecutive segments)

tau

relative position (between 0 and 1) of the changepoints (the last position is always 1)

sigma

A positive number: the value (unique) of the standard deviation for all the Gaussian laws in the simulation

n

The number of data point to simulate

Value

A vector of data of length n generated by the simulated segmentation

Examples

1
2
data <- dataG1(sigma = 0.05, n=20)
plot(1:20,data)

vrunge/plotFPOP documentation built on May 29, 2019, 9:57 a.m.