R/nZC.R

nZeroCross <- function(x, ...){
  x=no0(x, ...)
  len=length(x)
  signo=ifelse(x>=0, 1, -1)
  signo.diff=diff(signo)
  result=1/(2*len)*sum(abs(signo.diff))
  return(result)
  }

Try the pdCluster package in your browser

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

pdCluster documentation built on May 2, 2019, 5:25 p.m.