sgolay | R Documentation |
A closure which sets defaults frequently appropriate for DSF for p (filter order) and n (filter length). Allows the filter to be called with the simplier syntax later. e.g. sgolay(value, 1) returns the first derivative of the vector 'value'. Formals for sgolay and be reset after calculations performed on user data to determine ideal p and n. This behavior is not implemented yet.
sgolay(x, p, n, m)
x |
a numeric vector to be savitsky-golay filtered |
p |
the filter order to use. Defaults to 5. Must be odd and >2. |
n |
the number of measurements in the filter window. Defaults to 13. |
m |
the filter order. 0: smoothing only; 1: first derivative, 2: second derivative, etc. |
Savistky-Golay filtering is used for all smoothing and derivative calculations in dsfworld.
a numeric vector, with a savistky-golay filter applied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.