R/perturb.R

Defines functions perturb

Documented in perturb

perturb <-
function(x, mu, dv, tol=0.01){
  p = rnorm(length(x), mu, dv)
  x.p = x + p*tol*(norm(x,"2")/norm(p,"2"))
  return(x.p)
}

Try the multiColl package in your browser

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

multiColl documentation built on July 21, 2022, 9:06 a.m.