R/b.R

b <-
function(x, pos=1, envir=as.environment(pos))
{ 
  u2 <- get("u.local2", envir=envir)(x)
  v2 <- get("v.local2", envir=envir)[[1]](x)(x)
  pr <- c(attr(v2, "gradient"))
  return(u2/(as.matrix(pr) %*% cov %*% as.matrix(pr)))
}

Try the radir package in your browser

Any scripts or data that you put into this service are public.

radir documentation built on July 3, 2019, 9:02 a.m.