R/Local.Mode.R

Defines functions Local.Mode

Documented in Local.Mode

Local.Mode <-
function(x,y){
 yy <- c(0, y, 0)
 l <- length(yy)
 idx <- (yy[2:(l - 1)] > yy[1:(l - 2)]) & (yy[2:(l - 1)] > yy[3:l])
 sort(x[idx])
 }

Try the BayesGOF package in your browser

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

BayesGOF documentation built on May 2, 2019, 8:57 a.m.