
Last chance! 50% off unlimited learning
Sale ends in
tfourier
computes tangent angle Fourier analysis from a matrix or a list of coordinates.tfourier(coo, nb.h, smooth.it=0, norm = FALSE, silent = TRUE)
integer
. The number of harmonics to calculate/useinteger
. The number of smoothing iterations to performlogical
. Whether to scale and register new coordinates so that the first point used is sent on the origin.logical
. Whether to display diagnosis messages.ao
Harmonic coefficient.vector
of $a_{1->n}$ harmonic coefficients.vector
of $b_{1->n}$ harmonic coefficients.vector
of variation of the tangent angle.vector
of distance along the perimeter expressed in radians.numeric
. The perimeter of the outline.numeric
. The first tangent angle.data(bot)
coo <- bot@coo[[1]]
coo.plot(coo)
tf <- tfourier(coo, 12)
tf
tfi <- tfourier.i(tf)
l2m(tfi)
coo.draw(tfi, border="red", col=NA) # the outline is not closed...
coo.draw(tfourier.i(tf, force2close=TRUE), border="blue", col=NA) # we force it to close.
Run the code above in your browser using DataLab