View source: R/som.nn.distance.matrix.R
dist.torus | R Documentation |
Calculates the distance matrix of points on the surface of a torus.
dist.torus(coors)
coors |
|
A rectangular plane is considered as torus (i.e. on an endless plane that contimues on the left, when leaving at the right side, and in the same way connects top and bottom border). Distances between two points on the plane are calculated as the shortest distance between the points on the torus surface.
Complete distance matrix with diagonal and upper triangle values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.