buildWijMatrix: Rescale the weights in an edge matrix to match a given...

Description Usage Arguments Value

View source: R/largeVis.R

Description

Rescale the weights in an edge matrix to match a given perplexity.

Usage

1
2
3
4
5
6
7
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)

Arguments

x

A sparse matrix

threads

numeric The maximum number of threads to spawn. Determined automatically if NULL (default=NULL)

perplexity

numeric Given perplexity (default=50)

Value

A list with the following components:

'dist'

An [N,K] matrix of the distances to the nearest neighbors.

'id'

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.

'k'

The number of nearest neighbors.


conos documentation built on Feb. 23, 2021, 9:06 a.m.