SmoothGradient | R Documentation |
Function to smooth data and calculate derivative with pspline
SmoothGradient(
m,
t,
breaks,
t.out = t,
deriv = 1,
ncpu = 10,
method = "pspline",
...
)
m |
a matrix of data (variable in columns and time in rows) |
t |
matrix or vector of time points for each data |
breaks |
break points to re-smooth the data |
t.out |
time stamps of output (default: to be the same as input) |
deriv |
order of derivative to calculate |
ncpu |
number of cpus (default: 10) |
method |
smoothing method used to calculate gradients (default: pspline) |
a matrix of gradients calculated (deriv=1), a matrix of smoothed data (deriv=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.