Description Usage Arguments Value Examples
Method for evaluating the polynomial function of degree M for observation data obs and coefficients w.
1 2 | ## S3 method for class 'polynomial'
eval_function(x, obs, w, ...)
|
x |
The basis function object. |
obs |
Input / observation data. |
w |
Vector of length M, containing the coefficients of an Mth-order basis function. |
... |
Optional additional parameters |
The polynomial function values.
1 2 3 4 | x <- polynomial.object(M=2)
obs <- c(1,2,3)
w <- c(0.1, 0.3, -0.6)
out <- eval_function(x, obs, w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.