Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

roughness

Roughness or total curvature


Description

This function computes the roughness or total curvature of a curve, i.e. of a time wave or of a spectrum

Usage

roughness(x, std = FALSE)

Arguments

x

a vector

std

a logical, if set to TRUE then x is standardized by its maximum.

Details

Roughness or total curvature is the integrated squared second derivative :

roughness = sum(second derivative^2)

.

Value

A vector of length 1.

Note

The value has not unit.

Author(s)

Jerome Sueur

References

Ramsay JO, Silverman BW (2005) Functional data analysis. Springer, Berlin.

See Also

rugo, rms, sh, th, H.

Examples

data(tico)
spec <- meanspec(tico, plot=FALSE)[,2]
roughness(spec)

seewave

Sound Analysis and Synthesis

v2.1.6
GPL (>= 2)
Authors
Jerome Sueur <sueur@mnhn.fr> [cre, au], Thierry Aubin [au], Caroline Simonis [au], Laurent Lellouch [main ctrb], Ethan C. Brown [ctrb], Marion Depraetere [ctrb], Camille Desjonqueres [ctrb], Francois Fabianek [ctrb], Amandine Gasc [ctrb], Eric Kasten [ctrb], Stefanie LaZerte [ctrb], Jonathan Lees [ctrb], Jean Marchal [ctrb], Andre Mikulec [ctrb], Sandrine Pavoine [ctrb], David Pinaud [ctrb], Alicia Stotz [ctrb], Luis J. Villanueva-Rivera [ctrb], Zev Ross [ctrb], Carl G. Witthoft [ctrb], Hristo Zhivomirov [ctrb].
Initial release
2020-06-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.