R/TV1.R

Defines functions TV1

Documented in TV1

TV1 <- function(x) {
 # Part of R1Magic by mehmet.suzen@physics.org
 n <-length(x)
 return( sum(abs(x[1:n-1]-x[2:n]) ) )
}

Try the R1magic package in your browser

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

R1magic documentation built on Aug. 27, 2023, 5:07 p.m.