dist.torus: Torus distance matrix

Description Usage Arguments Details Value

View source: R/som.nn.distance.matrix.R

Description

Calculates the distance matrix of points on the surface of a torus.

Usage

1
dist.torus(coors)

Arguments

coors

data.frame or matrix with two columns with x- and y-coordinates.

Details

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.

Value

Complete distance matrix with diagonal and upper triangle values.


som.nn documentation built on May 2, 2019, 8:26 a.m.