R/conv.test.r

conv.test <- function(theta1, theta2, epsilon) {
  diffvec <- theta1 - theta2
  diff <- sqrt(sum(diffvec**2))/sqrt(sum(theta1**2))
  (diff < epsilon)
}

Try the addreg package in your browser

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

addreg documentation built on May 2, 2019, 9:38 a.m.