-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheval.penalty.Rd
70 lines (67 loc) · 2.34 KB
/
eval.penalty.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
\name{eval.penalty}
\alias{eval.penalty}
\title{
Evaluate a Basis Penalty Matrix
}
\description{
A basis roughness penalty matrix is the matrix containing
the possible inner products of pairs of basis functions.
These inner products are typically defined in terms of
the value of a derivative or of a linear differential
operator applied to the basis function. The basis penalty
matrix plays an important role in the computation of
functions whose roughness is controlled by a roughness
penalty.
}
\usage{
eval.penalty(basisobj, Lfdobj=int2Lfd(0), rng=rangeval)
}
\arguments{
\item{basisobj}{a basis object.}
\item{Lfdobj}{
either a nonnegative integer defining an order of a
derivative or a linear differential operator.
}
\item{rng}{
a vector of length 2 defining a restricted range.
Optionally, the inner products can be computed over
a range of argument values that lies within the
interval covered by the basis function definition.
}
}
\value{
a square symmetric matrix whose order is equal
to the number of basis functions defined by
the basis function object \code{ basisobj }.
If \code{Lfdobj} is $m$ or a linear
differential operator of order $m$, the rank
of the matrix should be at least approximately equal to
its order minus $m$.
}
\details{
The inner product can be computed exactly for many
types of bases if $m$ is an integer. These include
B-spline, fourier, exponential, monomial, polynomial and power bases.
In other cases, and for noninteger operators, the
inner products are computed by an iterative numerical
integration method called Richard extrapolation using the
trapezoidal rule.
If the penalty matrix must be evaluated repeatedly,
computation can be greatly speeded up by avoiding the use
of this function, and instead using quadrature points and
weights defined by Simpson's rule.
}
\references{
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009),
\emph{Functional data analysis with R and Matlab}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005),
\emph{Functional Data Analysis, 2nd ed.}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002),
\emph{Applied Functional Data Analysis}, Springer, New York.
}
\seealso{
\code{\link{getbasispenalty}},
\code{\link{eval.basis}},
}
% docclass is function
\keyword{smooth}