Description Usage Arguments Value Author(s) See Also Examples
Method for evaluating an M basis function model with observation
data obs
and coefficients w
.
1 2 3 4 5 6 7 8 9 10 11 12 | eval_probit_function(x, ...)
eval_function(x, ...)
## S3 method for class 'rbf'
eval_function(x, obs, w, ...)
## S3 method for class 'polynomial'
eval_function(x, obs, w, ...)
## S3 method for class 'fourier'
eval_function(x, obs, w, ...)
|
x |
The basis function object. |
... |
Optional additional parameters |
obs |
Observation data. |
w |
Vector of length M, containing the coefficients of an M^{th}-order basis function. |
The evaluated function values.
NOTE that the eval_probit_function
computes the probit transformed
basis function values.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Evaluate the probit transformed basis function values
x <- create_rbf_object(M=2)
obs <- c(1,2,3)
w <- c(0.1, 0.3, -0.6)
out <- eval_probit_function(x, obs, w)
# -------------------------
# Evaluate the RBF basis function values
x <- create_rbf_object(M=2, mus = c(2,2.5))
obs <- c(1,2,3)
w <- c(0.1, 0.3, -0.6)
out <- eval_function(x, obs, w)
# -------------------------
# Evaluate the Polynomial basis function values
x <- create_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.