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=length(exponents), exponents=1,
dropind=NULL, quadvals=NULL, values=NULL)
quadvals
.power
.basisfd
,
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