Description Usage Arguments Details Value Author(s) See Also Examples
This function simply adds the "kernelmatrix"
class to a standard
matrix for subsequent use for a Kernel Self-Organising Map. Optionally
performs some sanity check on the matrix to verify that it represents a
non negative kernel matrix.
1 |
data |
an object of class |
... |
not used |
The current version of the function only checks for symmetry of the
data
. Future versions will provide optional non negativity tests.
An object of class "kernelmatrix"
which is in fact a
matrix.
Fabrice Rossi
See batchsom.kernelmatrix
for the main use of
Kernel matrices
1 2 3 4 | ## the linear kernel applied to the Iris dataset
data(iris)
# scaling and kernel computation
data <- as.kernelmatrix(tcrossprod(scale(iris[1:4])))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.