Description Usage Arguments Details Examples
Generic functions associated with the kernel class.
1 2 3 4 5 6 7 8 9 10 11 |
x |
a kernel object, or some other object to be tested |
object |
a kernel object |
digits |
the number of digits to display for the kernel parameters |
which |
a string giving the column name for which to plot the
covariance structure. If |
range |
the range of distances between points over which to plot covariances |
ref |
the reference value against which to compare other points of a given distance |
... |
additional arguments for compatibility with generic functions |
is.kernel
returns a logical indicating whether the
object is a gpe kernel. print
returns a very simple summary of the
kernel structure. summary
returns a more detailed summary of the
kernel structure, including the values of the kernel parameters.
plot
plots the covariance structure of the kernel (how covariance)
between two points depends on the distance between them.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# construct a kernel with one feature
k1 <- rbf('temperature')
# is it a kernel?
is.kernel(k1)
# print the kernel's basic structure
print(k1)
# this is also the default action for displaying the object:
k1
# a more detailed summary of the kernel's structure
summary(k1)
# plot the covariance structure of the GP
plot(k1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.