R/EMJMCMC2016-method-hashing.R

EMJMCMC2016$methods(
  hashing = function(bit) # a hash function to find where to place the key in the hash
  {
    n <- length(bit)
    if (n < hash.length) {
      return(bittodec.alt(bit))
    }
    return(bittodec.alt(bit[(n - hash.length + 1):n]))
  }
)

Try the EMJMCMC package in your browser

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

EMJMCMC documentation built on June 22, 2024, 11:34 a.m.