computeKNNWeights,Trajectory-method | R Documentation |
Compute KNN weights based on geodesic distances for Trajectory objects
## S4 method for signature 'Trajectory'
computeKNNWeights(object, K = round(sqrt(nrow(object))))
object |
a Trajectory object |
K |
Number of neighbors to consider. |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.