R/binToDec.R

binToDec <-
function (x) {

  dec <- sum(x * 2^(rev(seq_along(x)) - 1))
  return(dec)  

}

Try the bayesloglin package in your browser

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

bayesloglin documentation built on May 1, 2019, 9:45 p.m.