Description Usage Arguments Value
Given a numeric series x
, compute its n
-offset central
difference y
, such that y[i] = x[i+n] - x[i-n]
.
1 2 3 4 5 6 7 8 | CentralDifference(x, ...)
## S3 method for class 'numeric'
CentralDifference(x, n = 1, order = 1, samplingRate = 2
* n, ...)
## S3 method for class 'data.frame'
CentralDifference(x, n = 1, order = 1, ...)
|
x |
A numeric vector or a data frame of numeric vectors. |
... |
Placeholder for future methods. |
n |
An atomic numeric, the number of samples offset from the current
sample used in the central difference. Default is |
order |
An atomic numeric, the number of times the central-difference
operator is applied to |
samplingRate |
An atomic numeric, the sampling rate of |
The central difference of x
if x
is numeric, or of
each column of x
if x
is a data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.