Learn R Programming

rpatrec (version 1.0.1)

splines: Use the inbuilt function

Description

This function provides smoothing capabilities using the cubic B-spline

Usage

splines(input, spar = 0.5, ...)

Arguments

input
Time series data passed to be smoothed
spar
Smoothing Parameter, value should be between 0 and 1. NULL for automatic computation
...
Optional: Other arguments passed to smooth.spline

Value

Smoothed time series data only, no additional output.

Details

For an overview of the package capabilities, click here rpatrec. This function is purely included to provide the standard interface coherent with other smoothers to the user.

Examples

Run this code
## Not run: ------------------------------------
# #create a standard HS pattern:
# a <- generator()
# #add noise to this patterns
# b <- noise(a,'white',10)
# #smooth to regain the signal
# c <- splines(b)
## ---------------------------------------------

Run the code above in your browser using DataLab