Learn R Programming

Momocs (version 0.1-01)

efourier: Computes the Fourier coefficients on a list of coordinates.

Description

Computes the Fourier coefficients $a_o$, $a_n$, $b_n$, $c_o$, $c_n$, $d_n$ from a list of $(x; y)$ coordinates of the sampled points.

Usage

efourier(coo, nb.h = 32, smooth.it = NULL)

Arguments

coo
the Coo-object
nb.h
code{integer} indicating how many harmonics to calculate
smooth.it
code{integer} indicating how many smoothing iterations to perform

Value

  • aonumeric: the $a_o$ harmonic coefficient
  • conumeric: the $c_o$ harmonic coefficient
  • ana vector of numeric indicating the $a_(1 \to n)$ harmonic coefficients
  • bna vector of numeric indicating the $b_(1 \to n)$ harmonic coefficients
  • cna vector of numeric indicating the $c_(1 \to n)$ harmonic coefficients
  • dna vector of numeric indicating the $d_(1 \to n)$ harmonic coefficients

Examples

Run this code
data(bottles.cont)
efourier(bottles.cont@coo[[1]])

Run the code above in your browser using DataLab