computeKNNWeights-Trajectory-method: Compute KNN weights based on geodesic distances for...

computeKNNWeights,Trajectory-methodR Documentation

Compute KNN weights based on geodesic distances for Trajectory objects

Description

Compute KNN weights based on geodesic distances for Trajectory objects

Usage

## S4 method for signature 'Trajectory'
computeKNNWeights(object, K = round(sqrt(nrow(object))))

Arguments

object

a Trajectory object

K

Number of neighbors to consider.

Value

a list of two items: indices: matrix, cells X neighbors Each row specifies indices of nearest neighbors weights: matrix, cells X neighbors Corresponding weights to nearest neighbors


YosefLab/FastProjectR documentation built on Feb. 15, 2023, 6:21 a.m.