Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ABEGO_SS_Config.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/quota/QuotaSelector.hh
11 /// @brief provides a selector that picks best fragments based on their total score
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Config_hh
15 #define INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Config_hh
16 
18 
19 // utility headers
20 #include <core/types.hh>
21 #include <utility/vector1.hh>
22 
23 // C++ headers
24 // AUTO-REMOVED #include <map>
25 #include <string>
26 
27 namespace protocols {
28 namespace frag_picker {
29 namespace quota {
30 
31 /// @brief read a config file for quota selector
32 class ABEGO_SS_Config : public QuotaConfig {
33 public:
34 
35  /// @brief Constructor reads a config file
36  ABEGO_SS_Config(std::string & config_file_name);
37 
38  Size n_columns() { return bin_probs_[1].size(); }
39 
40  Size n_rows() { return bin_probs_.size(); }
41 
42  Size size() { return bin_probs_.size(); }
43 
45 
46  Real probability(Size seq_pos,Size bin) { return bin_probs_[seq_pos][bin]; }
47 
49 
51 
53 private:
57 };
58 
59 } // quota
60 } // frag_picker
61 } // protocols
62 
63 
64 #endif /* INCLUDED_protocols_frag_picker_quota_ABEGO_SS_Config_HH */