roughness {seewave} | R Documentation |
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)
x |
a vector |
std |
a logical, if set to |
Roughness or total curvature is the integrated squared second
derivative :
roughness = sum(second derivative^2)
.
A vector of length 1.
The value has not unit.
Jerome Sueur
Ramsay JO, Silverman BW (2005) Functional data analysis. Springer, Berlin.
data(tico) spec <- meanspec(tico, plot=FALSE)[,2] roughness(spec)