Usage
create.fourier.basis(rangeval=c(0, 1), nbasis=3,
period=width, dropind=NULL, quadvals=NULL,
values=NULL, longNames=TRUE)
Arguments
rangeval
a vector of length 2 containing the initial and final
values of the interval over which the functional
data object can be evaluated. Default value c(0,1)
nbasis
the number of basis functions, rounded up to the nearest odd
integer. The number of basis functions is always odd, even when an
even number is specified, so as to preserve the pairing of sine and
cosine functions. Default value 3.
period
the width of any interval over which the Fourier functions repeat
themselves, or are periodic. The default is the width of the
interval defined in rangeval.
dropind
a vector of integers specifiying the basis functions to
be dropped, if any. For example, if it is required that
a function be zero at the left boundary, this is achieved
by dropping the first basis function, the only one that
is nonzero a
quadvals
a matrix with two columns and a number of rows equal to the number
of argument values used to approximate an integral using Simpson's
rule. The first column contains these argument values. A minimum
of 5 values are required for each inter-kn
values
a list containing the basis functions and their derivatives
evaluated at the quadrature points contained in the first
column of quadvals
.
longNames
if FALSE, the function value will include a component 'names', the
first of which will be 'const', followed by 'sin1', 'cos1', 'sin2',
... . if TRUE, the function value will include 'names' as when longNames =
FALSE, but with the 'period