Learn R Programming

onlineforecast (version 1.0.0)

lp_vector_cpp: Low pass filtering of a vector.

Description

This function returns a vector which is x through a unity gain first-order low-pass filter.

Arguments

x

A numeric vector

a1

the first order low-pass filter coefficient