Description Usage Arguments Value Author(s) Examples
Given a N \times k matrix X, this function calculates the l_p norm between rows.
1 | MatrixkNorm(X, p)
|
X |
A N \times k matrix |
p |
A positive integer value which determines the norm to be used. When k = ∞, the maximum norm is calculated. |
A N \times N symmetric matrix, where N is the number of rows of the argument matrix X. All the diagonal elements are zeroes and the (i,j)^{th} element represents the l_p-norm distance between the i^{th} and j^{th} rows, given by ≤ft(\mathop{∑}_{s=1}^{k} |X_{is} - X_{js}|^p \right)^{1/p}
Deepak Nag Ayyala <deepaknagayyala@gmail.com>
1 2 3 | ## Not run: data(metagencounts)
Distance <- MatrixkNorm(metagencounts$Counts, p = 2);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.