rblockdata: Random generation noisy block-wise matrices

Description Usage Arguments Examples

View source: R/rblockdata.R

Description

Function to draw data.

Usage

1
rblockdata(n, mu, sigma, type = c("Eq", "NEq", "NEqbis"))

Arguments

n

number of rows and columns.

mu

symmetric matrix to the means.

sigma

variance of the variables.

type

represent the spacing between two change-point: "Eq" for a homogenous spacing, "NEq" for an arithmetic spacing and "NEqbis" for a decreasing arithmetic spacing.

Examples

1
2
3
4
5
## model parameters
n <- 100
K <- 5
mu <- suppressWarnings(matrix(rep(c(1,0),ceiling(K**2/2)), K,K))
Y <- rblockdata(n,mu,sigma=.5)

jchiquet/blockseg documentation built on Aug. 30, 2019, 9:18 a.m.