Copyright © 2012 Zuse Institute Berlin
Version: $Id$
Authors: Magnus Mueller (mamuelle@informatik.hu-berlin.de).
References
centroid() = #centroid{coordinate = coordinate(), relative_size = relative_size()}
centroids() = [centroid()]
coordinate() = gossip_vivaldi:network_coordinate()
relative_size() = float()
distance/2 | Get the distance between two centroids. |
empty_centroids_list/0 | Helper to return an empty list of centroids. |
get_coordinate/1 | Get centroid's coordinate. |
get_coordinate_and_relative_size/1 | Get a centroid's coordinate and relative size as a tuple. |
get_relative_size/1 | Get centroid's relative size. |
new/2 | Create a new centroid. |
set_relative_size/2 | Set the relative size of a centroid. |
new(Coordinate :: coordinate(), RelativeSize :: relative_size()) -> centroid()
Create a new centroid.
get_coordinate(Centroid :: centroid()) -> coordinate()
Get centroid's coordinate
get_relative_size(Centroid :: centroid()) -> relative_size()
Get centroid's relative size
get_coordinate_and_relative_size(Centroid :: centroid()) -> {coordinate(), relative_size()}
Get a centroid's coordinate and relative size as a tuple
set_relative_size(Centroid :: centroid(), RelativeSize :: relative_size()) -> centroid()
Set the relative size of a centroid
empty_centroids_list() -> centroids()
Helper to return an empty list of centroids.
distance(U :: centroid(), V :: centroid()) -> float()
Get the distance between two centroids
Generated by EDoc, Feb 29 2016, 16:12:16.