coef.minimaxApprox {minimaxApprox} | R Documentation |
"minimaxApprox"
objectExtracts the numerator and denominator vectors from a "minimaxApprox"
object.
## S3 method for class 'minimaxApprox'
coef(object, ...)
object |
An object inheriting from class |
... |
Other arguments. |
Coefficients extracted from the "minimaxApprox"
object. A
list containing:
a |
The polynomial coefficients or the rational numerator coefficients. |
b |
The rational denominator coefficients. Missing for polynomial approximation. |
Avraham Adler Avraham.Adler@gmail.com
PP <- minimaxApprox(exp, 0, 1, 5)
coef(PP)
identical(unlist(coef(PP), use.names = FALSE), PP$a)
RR <- minimaxApprox(exp, 0, 1, c(2, 3))
coef(RR)
identical(coef(RR), list(a = RR$a, b = RR$b))