x^exponent
, where exponent
is a vector
containing a set of powers or exponents. The power basis would
normally only be used for positive values of x, since the power of a
negative number is only defined for nonnegative integers, and the
exponents here can be any real numbers.create.power.basis(rangeval=c(0, 1), nbasis=NULL, exponents=NULL,
dropind=NULL, quadvals=NULL, values=NULL,
basisvalues=NULL, names='power', axes=NULL)
length(exponents)
. Default =
if(is.null(exponents)) 2 else length(exponents).nbasis
containing the powers of
x
in the basis.quadvals
contains the
quadrature points, and the second column the quadquadvals
and
one column for each basis function. The elements of the list
correspond to the basis functions and their derivatives evaluated at
the quadrature points contained in the For power
bases, this defaults to paste(power',
0:(nbasis-1), sep='').
plot
functions to create
custom axes
. If this axes
argument is not
NULL
, functions plot.basisfd
, plot.fd
,
plot.fdSmooth
power
.basisfd
,
create.basis
,
create.bspline.basis
,
create.constant.basis
,
create.exponential.basis
,
create.fourier.basis
,
create.monomial.basis
,
create.polygonal.basis
,
create.polynomial.basis
# Create a power basis over the interval [1e-7,1]
# with powers or exponents -1, -0.5, 0, 0.5 and 1
basisobj <- create.power.basis(c(1e-7,1), 5, seq(-1,1,0.5))
# plot the basis
plot(basisobj)
Run the code above in your browser using DataLab