Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new HAC object that uses single-linkage as fusion function and the Jaccard index as distance metric 
 /// to cluster the specified elements.
 /// </summary>
 /// <param name="elements"></param>
 public HacStart(Element[] elements)
 {
     setElements(elements);
     this.fusion = new SingleLinkage();
     this.metric = new JaccardDistance();
     this.fusion.Metric = metric;
 }
Ejemplo n.º 2
0
 private void setElements(Element[] elements)
 {
     this.elements.AddRange(elements);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new HAC object to cluster the specified elements with the specified fusion and 
 /// metric function.
 /// </summary>
 /// <param name="elements"></param>
 /// <param name="fusion"></param>
 /// <param name="metric"></param>
 public HacStart(Element[] elements, Fusion fusion, IDistanceMetric metric)
 {
     setElements(elements);
     this.fusion = fusion;
     this.fusion.Metric = metric;
 }
Ejemplo n.º 4
0
 internal void AddElements(Element[] elements)
 {
     foreach (Element e in elements)
         this.elements.Add(e);
 }
Ejemplo n.º 5
0
 internal void AddElement(Element element)
 {
     this.elements.Add(element);
 }