Class Index | File Index

Classes


Class de.aitools.js.Clustering

Implementation of the clustering data structure
Defined in: Clustering.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
de.aitools.js.Clustering(nodeIdClusterMapping)
Implementation of the clustering data structure
Method Summary
Method Attributes Method Name and Description
 
Method to get the total cluster count of clustering.
 
Method to get the cluster id that a given node id belongs to.
 
getItemsOfCluster(clusterId)
Method to get the node ids of a cluster.
 
getSizeOfCluster(clusterId)
Method to get the size of a cluster.
Class Detail
de.aitools.js.Clustering(nodeIdClusterMapping)
Implementation of the clustering data structure
Author: Christian Fricke christian.fricke@uni-weimar.de.
Parameters:
{Object} nodeIdClusterMapping
mapping: key[nodeId]=>value[clusterId]
Method Detail
{Number} getClusterCount()
Method to get the total cluster count of clustering.
Returns:
{Number} Total count of clusters within clustering

{Number} getClusterOfItem(nodeId)
Method to get the cluster id that a given node id belongs to.
Parameters:
{Number} nodeId
The node id to be used
Returns:
{Number} Cluster id the given node id belongs to

{Array} getItemsOfCluster(clusterId)
Method to get the node ids of a cluster.
Parameters:
{Number} clusterId
The cluster id to be used
Returns:
{Array} Array of all nodeIds in the cluster

{Number} getSizeOfCluster(clusterId)
Method to get the size of a cluster.
Parameters:
{Number} clusterId
The cluster id to be used
Returns:
{Number} Size of desired cluster

Documentation generated by JsDoc Toolkit 2.4.0 on Wed May 30 2012 16:21:04 GMT+0200 (CEST)