View source: R/core-out-rfourier.R
rfourier | R Documentation |
rfourier
computes radii variation Fourier analysis from a matrix or a
list of coordinates where points are equally spaced radii.
rfourier(x, ...)
## Default S3 method:
rfourier(x, nb.h, smooth.it = 0, norm = FALSE, ...)
## S3 method for class 'Out'
rfourier(x, nb.h = 40, smooth.it = 0, norm = TRUE, thres = pi/90, ...)
## S3 method for class 'list'
rfourier(x, ...)
x |
A |
... |
useless here |
nb.h |
|
smooth.it |
|
norm |
|
thres |
|
see the JSS paper for the maths behind. The methods for Out
objects
tests if coordinates have equally spaced radii using is_equallyspacedradii. A
message is printed if this is not the case.
A list with following components:
an
vector of a_{1->n}
harmonic coefficients
bn
vector of b_{1->n}
harmonic coefficients
ao
ao harmonic coefficient.
r
vector of radii lengths.
Silent message and progress bars (if any) with options("verbose"=FALSE)
.
Directly borrowed for Claude (2008), and called fourier1
there.
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
Other rfourier:
rfourier_i()
,
rfourier_shape()
data(bot)
coo <- coo_center(bot[1]) # centering is almost mandatory for rfourier family
coo_plot(coo)
rf <- rfourier(coo, 12)
rf
rfi <- rfourier_i(rf)
coo_draw(rfi, border='red', col=NA)
# Out method
bot %>% rfourier()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.