View source: R/normalization.R
cosNorm | R Documentation |
It is equivalent to compute K using the normalization 'X/sqrt(sum(X^2))' in Feature Space.
cosNorm(K)
K |
Kernel matrix (class "matrix"). |
Cosine-normalized K (class "matrix").
Ah-Pine, J. (2010). Normalized kernels as similarity indices. In Advances in Knowledge Discovery and Data Mining: 14th Pacific-Asia Conference, PAKDD 2010, Hyderabad, India, June 21-24, 2010. Proceedings. Part II 14 (pp. 362-373). Springer Berlin Heidelberg. Link
dat <- matrix(rnorm(250),ncol=50,nrow=5)
K <- Linear(dat)
cosNorm(K)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.