coef_fourier: Computing coefficients Fourier.

View source: R/smoothing.R

coef_fourierR Documentation

Computing coefficients Fourier.

Description

This function computes minimum square estimates for Fourier coefficients.

Usage

coef_fourier(f, m)

Arguments

f

A time series to be smoothed.

m

Order of the Fourier polynomial. Default value is computed using the Sturge's rule.

Value

A vector with the fourier coefficients.

Examples

x <- seq(from = -pi, to = pi, by = 0.01)
y <- x^2 + rnorm(length(x), sd = 0.1)
v_coef <- coef_fourier(y)

geoFKF documentation built on Aug. 13, 2022, 1:05 a.m.