Learn R Programming

itsmr (version 1.9)

smooth.exp: Apply an exponential filter

Description

Apply an exponential filter

Usage

smooth.exp(x, alpha)

Value

Returns a vector of smoothed data the same length as x.

Arguments

x

Time series data

alpha

Smoothness setting, 0-1

Details

Zero is maximum smoothness.

Examples

Run this code
y = smooth.exp(strikes,.4)
plotc(strikes,y)

Run the code above in your browser using DataLab