Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Distance : sig ... end
Compute 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.t
Compute 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 list
Given a list of AST hashes (identified by a key), perform a kind of complete-linkage clustering using dist
.