Description Objects from the Class Slots Methods Note Author(s) See Also Examples
S4 class representing a covariance kernel defined manually by a (semi-)positive definite function.
Objects can be created by calling new("covMan", ...)
or by using the covMan
function.
kernel
:object of class "function"
defining the kernel (supposed to
be (semi-)positive definite).
hasGrad
:logical indicating whether kernel
returns the gradient
(w.r.t. the vector of parameters) as "gradient"
attribute
of the result.
acceptMatrix
:logical indicating whether kernel
admits matrix
arguments. Default is FALSE
.
label
:object of class character, typically one or two words, used to describe the kernel.
d
:object of class "integer"
, the spatial dimension or number
of inputs of the covariance.
inputNames
:object of class "character"
, vector of input names. Length
d
.
parLower
:,
parUpper
:object of class "numeric"
, vector of (possibly infinite)
lower/upper bounds on parameters.
par
:object of class "numeric"
, numeric vector of parameter
values.
parN
:object of class "integer"
, total number of parameters.
kernParNames
:object of class "character"
, name of the kernel
parameters.
signature(object = "covMan")
: replace the whole vector of
coefficients, as required during ML estimation.
signature(object = "covMan")
: replacement method for lower
bounds on covMan coefficients.
signature(object = "covMan")
: extracts the numeric values of
the lower bounds.
signature(object = "covMan")
: extracts the numeric values
of the covariance parameters.
signature(object = "covMan")
: replacement method for upper
bounds on covMan coefficients.
signature(object = "covMan")
: ...
signature(object = "covMan")
: builds the covariance matrix
or the cross covariance matrix between two sets of locations for a
covMan
object.
signature(object = "covMan")
: computes the scores
(derivatives of the log-likelihood w.r.t. the covariance
parameters.
signature(object = "covMan")
: prints in a custom format.
While the coef<-
replacement method is typically intended for
internal use during likelihood maximization, the coefLower<-
and coefUpper<-
replacement methods can be used when some
information is available on the possible values of the parameters.
Y. Deville, O. Roustant, D. Ginsbourger and N. Durrande.
The covMan
function providing a creator.
1 | showClass("covMan")
|
Loading required package: Rcpp
Loading required package: testthat
Loading required package: nloptr
Loading required package: lattice
Class "covMan" [package "kergp"]
Slots:
Name: kernel hasGrad acceptMatrix label d
Class: function logical logical character integer
Name: inputNames parLower parUpper par parN
Class: optCharacter numeric numeric numeric integer
Name: kernParNames
Class: character
Extends: "covAll"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.