Calculates shapes based on 'Discrete cosine transforms' given harmonic coefficients (see dfourier) or can generate some random 'dfourier' shapes. Mainly intended to generate shapes and/or to understand how dfourier works.
Arguments
- A
vector of harmonic coefficients
- B
vector of harmonic coefficients
- nb.h
if
A
and/orB
are not provided, the number of harmonics to generate- nb.pts
if
A
and/orB
are not provided, the number of points to use to reconstruct the shapes- alpha
The power coefficient associated with the (usually decreasing) amplitude of the harmonic coefficients (see efourier_shape)
- plot
logical whether to plot the shape
See also
Other dfourier:
dfourier_i()
,
dfourier()