View source: R/kernel_functions.R
Frobenius | R Documentation |
'Frobenius()' computes the Frobenius kernel between numeric matrices.
Frobenius(DATA, cos.norm = FALSE, feat_space = FALSE)
DATA |
A list of M matrices or data.frames containing only real numbers (class "integer", "float" or "double"). All matrices or data.frames should have the same number of rows and columns. |
cos.norm |
Should the resulting kernel matrix be cosine normalized? (Defaults: FALSE). |
feat_space |
If FALSE, only the kernel matrix is returned. Otherwise, the feature space is also returned. (Defaults: FALSE). |
The Frobenius kernel is the same than the Frobenius inner product between matrices.
Kernel matrix (dimension:NxN), or a list with the kernel matrix and the feature space.
data1 <- matrix(rnorm(250000),ncol=500,nrow=500)
data2 <- matrix(rnorm(250000),ncol=500,nrow=500)
data3 <- matrix(rnorm(250000),ncol=500,nrow=500)
Frobenius(list(data1,data2,data3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.