Skip to content

Commit 14e2c42

Browse files
committed
fdParcheck bug
1 parent 4252bd0 commit 14e2c42

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

man/fdParcheck.Rd

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,26 @@
44
Convert \code{fd} or \code{basisfd} Objects to \code{fdPar} Objects
55
}
66
\description{
7-
If the input is an \code{fd} object, default parameters are added to convert
8-
it to an \code{fdPar} object. If a \code{basisfd} object, it is first
9-
converted to an \code{fd} object with a square coefficient matrix of
10-
zeros, and then converted to a \code{fdPar} object.
7+
If the input is an \code{fd} object, default \code{fdPar} parameters are
8+
added to convert the object to an \code{fdPar} object.
9+
If a \code{basisfd} object, it is first converted to an \code{fd} object
10+
with a \code{nbasis} by \code{ncurve} coefficient matrix of zeros,
11+
and then converted to a \code{fdPar} object.
1112
}
1213
\usage{
13-
fdParcheck(fdPar)
14+
fdParcheck(fdPar, ncurve)
1415
}
1516
\arguments{
1617
\item{fdPar}{A \code{basisfd}, \code{fd} or a \code{fdPar} object.}
18+
\item{ncurve}{The number of curves or functions for which the basis
19+
object is to be used in their representation. If missing, an error
20+
message is displayed and computation terminated.}
21+
}
22+
\details{
23+
The previous version of this function did not include the argument
24+
\code{ncurve}, and set up an \code{fd} object with a square
25+
matrix of zeros. This could cause an error in many of the
26+
functions that called it.
1727
}
1828
\value{
1929
Returns a \code{fdPar} object.

0 commit comments

Comments
 (0)