Example #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;
 }
Example #2
0
 private void setElements(Element[] elements)
 {
     this.elements.AddRange(elements);
 }
Example #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;
 }
Example #4
0
 internal void AddElements(Element[] elements)
 {
     foreach (Element e in elements)
         this.elements.Add(e);
 }
Example #5
0
 internal void AddElement(Element element)
 {
     this.elements.Add(element);
 }