Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Asak.Clusteringmodule Distance : sig ... endCompute the symmetric difference of two sorted lists. Return also if the intersection was not empty.
val dist :
((int * string) list * 'b) Wtree.wtree ->
((int * string) list * 'b) Wtree.wtree ->
Distance.tCompute recursively the distance between two clusters:
Wtree.wtree.Leaf, use the sum of the weight of the symmetric difference of their hash lists (or Infinity if the intersection was empty).Wtree.wtree.Node, use the maximum of the distances between the sub-trees and the other tree.val cluster : ('a * (int * string) list) list -> 'a list Wtree.wtree listGiven a list of AST hashes (identified by a key), perform a kind of complete-linkage clustering using dist.
The list is sorted with biggest trees first.