R/helper_getMode.R

Defines functions getMode

# Helper function to calculate the mode, not exported

getMode <- function(x) {
  dens <- densityFolded(x)
  return(dens$x[which.max(dens$y)])
}

Try the mcmcOutput package in your browser

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

mcmcOutput documentation built on Nov. 18, 2022, 1:08 a.m.