hsgsom-0.2.0: An implementation of the GSOM clustering algorithm.

Portabilityportable
Stabilityexperimental
Maintainergnn.github@gmail.com

Data.Datamining.Clustering.Gsom.Coordinates

Description

The network created by the GSOM algorithm is layed out in two dimensions. Thus one needs to assign two dimensional coordinates to the nodes of the network and for a clustering to the clusters.

The types defining these coordinates and the functions to handle them belong into this module.

Synopsis

Documentation

directions :: DirectionsSource

The list of supported directions. Since we are only dealing with hexagonal lattices, there are only six possible directions.

neighbour :: Coordinates -> Direction -> CoordinatesSource

neighbour location direction calculates the coordinates of the neighbour of node with location location in direction direction.

neighbourCoordinates :: Coordinates -> [Coordinates]Source

neighbourCoordinates point calculates the list of coordinates which are directly adjacent to point.