Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DiversifyCrmsdByClustering.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file protocols/frag_picker/DiversifyCrmsdByClustering.hh
11 /// @brief provides a selector that picks fragments diversified by crmsd (by means of hierarchical clustering)
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_DiversifyCrmsdByClustering_hh
15 #define INCLUDED_protocols_frag_picker_DiversifyCrmsdByClustering_hh
16 
17 // package headers
21 
22 // AUTO-REMOVED #include <core/pose/Pose.fwd.hh>
23 
24 #include <core/types.hh>
25 
26 #include <ObjexxFCL/FArray2D.hh>
27 #include <ObjexxFCL/FArray1D.hh>
28 
29 #include <utility/vector1.hh>
30 
31 
32 namespace protocols {
33 namespace frag_picker {
34 
35 using namespace ObjexxFCL;
36 using namespace core;
37 
38 /// @brief selects fragments by running several selectors
40 public:
41 
42  /// @brief Constructor sets the desired number of fragments and crmsd cutoff.
43  DiversifyCrmsdByClustering(Size frags_per_pos) : FragmentSelectingRule(frags_per_pos) {}
44 
45  /// @brief Selects desired number of fragments from a given set of candidates
46  virtual void select_fragments( ScoredCandidatesVector1 const&, ScoredCandidatesVector1& );
47 
49  }
50 
51 private:
52  void copy_coordinates(FragmentCandidateOP src,FArray2D_double & dst);
55  FArray1D_double weights_;
56 };
57 
58 } // frag_picker
59 } // protocols
60 
61 
62 #endif /* INCLUDED_protocols_frag_picker_DiversifyCrmsdByClustering_HH */