dist.torus {som.nn}R Documentation

Torus distance matrix

Description

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

Usage

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.

[Package som.nn version 1.4.4 Index]