Last chance! 50% off unlimited learning
Sale ends in
This function computes the roughness or total curvature of a curve, i.e. of a time wave or of a spectrum
roughness(x, std = FALSE)
a vector
a logical, if set to TRUE
then x
is standardized by its maximum.
A vector of length 1.
Roughness or total curvature is the integrated squared second
derivative :
Ramsay JO, Silverman BW (2005) Functional data analysis. Springer, Berlin.
# NOT RUN {
data(tico)
spec <- meanspec(tico, plot=FALSE)[,2]
roughness(spec)
# }
Run the code above in your browser using DataLab