1 | psi.bt(x, c1, M)
|
x |
|
c1 |
|
M |
1 2 3 4 5 6 7 8 9 10 11 12 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x, c1, M)
{
x1 <- (x - M)/c1
ivec1 <- (x1 < 0)
ivec2 <- (x1 > 1)
return(ivec1 * x + (1 - ivec1 - ivec2) * x * (1 - x1^2)^2)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.