Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AdaptiveScoreHistogram.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/scores/AdaptiveScoreHistogram.hh
11 /// @brief A very basic histogram to keep statistics of scores.
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_AdaptiveScoreHistogram_hh
15 #define INCLUDED_protocols_frag_picker_scores_AdaptiveScoreHistogram_hh
16 
17 // package headers
19 
20 // utility headers
21 #include <core/types.hh>
22 #include <utility/vector1.hh>
23 
24 #include <utility/pointer/ReferenceCount.hh>
25 
26 namespace protocols {
27 namespace frag_picker {
28 namespace scores {
29 
30 using namespace std;
31 using namespace core;
32 
34 public:
36  virtual ~AdaptiveScoreHistogram();
37 
38  void insert(Real);
39 
40  inline Size at(Size index) {
41  return data_.at(index);
42  }
43 
44  inline Size operator[](Size index) {
45  return data_[index];
46  }
47 
48  inline Size size() {
49  return data_.size();
50  }
51 
53  return data_;
54  }
55 
56  inline void clear() {
57  data_.clear();
58  }
59 
60  Size sum();
61 
62  Real p_value(Real);
63 private:
68 };
69 } // scores
70 } // frag_picker
71 } // protocols
72 
73 
74 #endif /* INCLUDED_protocols_frag_picker_scores_AdaptiveScoreHistogram_HH */