Description Usage Arguments Value Examples
View source: R/SimPolyChangePoint.R
Simulate data from a change point model made of polynomials.
1 2 3 4 5 6 7 8 9 |
N |
number of data points to simulate. |
sigma |
noise level, default = .1. |
xRange |
minimum and maximum x values, default = c(0,1). |
x0 |
change point value, default = 0.5. |
m1 |
coefficients for first polynomial model, default = c(1,2). |
m2 |
coefficients for second polynomial model, default = c(0,3). |
seed |
seed for RNG (default = NULL). |
list(data = matrix(x,y,z), t = t)
1 2 3 4 5 6 7 | N = 100
noise = .1
xRange = c(0,1)
x0 = .5
m1 = c(1,2)
m2 = c(5,2)
SimPolyChangePoint(N, noise, xRange, x0, m1, m2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.