coef_fourier | R Documentation |

This function computes minimum square estimates for Fourier coefficients.

coef_fourier(f, m)

`f` |
A time series to be smoothed. |

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

A vector with the fourier coefficients.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.