Description Usage Arguments Value
Rescale the weights in an edge matrix to match a given perplexity.
1 2 3 4 5 6 7 8 9 10 | buildWijMatrix(x, threads = NULL, perplexity = 50)
## S3 method for class 'edgematrix'
buildWijMatrix(x, threads = NULL, perplexity = 50)
## S3 method for class 'TsparseMatrix'
buildWijMatrix(x, threads = NULL, perplexity = 50)
## S3 method for class 'CsparseMatrix'
buildWijMatrix(x, threads = NULL, perplexity = 50)
|
x |
An edgematrix, either an 'edgematrix' object or a sparse matrix. |
threads |
The maximum number of threads to spawn. Determined automatically if |
perplexity |
Given perplexity. |
A list
with the following components:
An [N,K] matrix of the distances to the nearest neighbors.
An [N,K] matrix of the node indexes of the neartest neighbors. Note that this matrix is 1-indexed, unlike most other matrices in this package.
The number of nearest neighbors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.