Description Usage Arguments Examples
Computes coefficients for grid using support vectors
1 | cmf_coef_grid_sv(mdb, a, ai, alpha, grid, field)
|
mdb |
|
a |
|
ai |
|
alpha |
|
grid |
|
field |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
cmf_coef_grid_sv <- function(mdb, a, ai, alpha, grid, field) {
for (igridx in 1:grid$ngridx) {
cat(sprintf("x: %d of %d\n", igridx, grid$ngridx)); flush.console()
flush.console()
x <- grid$gridx[igridx]
for (igridy in 1:grid$ngridy) {
y <- grid$gridy[igridy]
for (igridz in 1:grid$ngridz) {
z <- grid$gridz[igridz]
grid$val[igridx,igridy,igridz] <- cmf_coef_xyz_sv(mdb,a,ai,alpha,x,y,z,field)
}
}
}
grid
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.