OpenMS
CompleteLinkage.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Mathias Walzer $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 //
9 #pragma once
10 
11 #include <vector>
12 #include <set>
13 #include <cmath>
14 
18 
19 namespace OpenMS
20 {
31  class OPENMS_DLLAPI CompleteLinkage :
32  public ClusterFunctor, public ProgressLogger
33  {
34 public:
35 
38 
41 
43  ~CompleteLinkage() override;
44 
47 
58  void operator()(DistanceMatrix<float> & original_distance, std::vector<BinaryTreeNode> & cluster_tree, const float threshold = 1) const override;
59 
61  static ClusterFunctor * create();
62 
64  static const String getProductName();
65 
66  };
67 
68 }
Base class for cluster functors.
Definition: ClusterFunctor.h:28
CompleteLinkage ClusterMethod.
Definition: CompleteLinkage.h:33
CompleteLinkage(const CompleteLinkage &source)
copy constructor
~CompleteLinkage() override
destructor
CompleteLinkage()
default constructor
CompleteLinkage & operator=(const CompleteLinkage &source)
assignment operator
void operator()(DistanceMatrix< float > &original_distance, std::vector< BinaryTreeNode > &cluster_tree, const float threshold=1) const override
clusters the indices according to their respective element distances
static ClusterFunctor * create()
creates a new instance of a CompleteLinkage object
static const String getProductName()
get the identifier for this object
A two-dimensional distance matrix, similar to OpenMS::Matrix.
Definition: DistanceMatrix.h:42
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22