| PairwiseMatrix-class | R Documentation |
Represents a pairwise similarity or distance matrix.
as.PairwiseMatrix(x, ...)
## S4 method for signature 'matrix'
as.PairwiseMatrix(x, ...)
## S4 method for signature 'PairwiseMatrix'
as.matrix(x, ...)
x |
an R object. |
... |
additional arguments to be passed to methods. |
If the elements being compared are from the same set, the matrix may be symmetric if the comparator is symmetric. In this case, entries in the upper triangle and/or along the diagonal may not be stored in memory, since they are redundant.
as.PairwiseMatrix: Convert an R object x to a PairwiseMatrix.
as.PairwiseMatrix,matrix-method: Convert an ordinary matrix x to a PairwiseMatrix.
as.matrix,PairwiseMatrix-method: Convert a PairwiseMatrix x to an ordinary matrix.
.Dataentries of the matrix in column-major order. Entries in the upper triangle and/or on the diagonal may be omitted.
Diminteger vector of length 2. The dimensions of the matrix.
Diaglogical indicating whether the diagonal entries are stored in
.Data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.