cmf_coef_grid_sv: Computes coefficients for grid using support vectors

Description Usage Arguments Examples

Description

Computes coefficients for grid using support vectors

Usage

1
cmf_coef_grid_sv(mdb, a, ai, alpha, grid, field)

Arguments

mdb
a
ai
alpha
grid
field

Examples

 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
}
  

conmolfields documentation built on May 2, 2019, 4:18 p.m.