1 |
x |
|
B |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ##---- 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, B, ...)
{
n <- x[1]
m <- x[2]
p = x[3]
x = matrix(x[4:length(x)], ncol = m)
B = matrix(B, ncol = m)
vals <- NA
z <- matrix(nrow = n, ncol = p)
B <- t(ortho(t(B)))
for (i in 1:n) z[i, ] <- B %*% as.matrix(x[i, ])
vals <- 0 - gvarg(z)
vals
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.