Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MinMultiHarmonicFunc.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 src/core/scoring/constraints/HarmonicFunc.hh
11 /// @brief Definition for functions used in definition of constraints.
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_core_scoring_constraints_MinMultiHarmonicFunc_hh
15 #define INCLUDED_core_scoring_constraints_MinMultiHarmonicFunc_hh
16 
19 #include <core/types.hh>
20 // AUTO-REMOVED #include <utility/vector1.hh>
21 
22 #include <utility/vector1_bool.hh>
23 
24 
25 // C++ Headers
26 
27 namespace core {
28 namespace scoring {
29 namespace constraints {
30 
31 class MinMultiHarmonicFunc : public Func {
32 public:
34 
35  FuncOP
36  clone() const { return new MinMultiHarmonicFunc( *this ); }
37 
38  Real func( Real const x ) const;
39  Real dfunc( Real const x ) const;
40 
41  void read_data( std::istream & in );
42 
43  void show_definition( std::ostream &out ) const;
44 
45  Real x0(int n) const {
46  return x0_[n];
47  }
48 
49  Real sd(int n) const {
50  return sd_[n];
51  }
52 
53  void x0( int n, Real x ) {
54  x0_[n] = x;
55  }
56 
57  void sd( int n, Real sd ) {
58  sd_[n] = sd;
59  }
60 
61  Size
62  show_violations( std::ostream& out, Real x, Size verbose_level, core::Real threshold = 1 ) const;
63 
64 private:
69 };
70 
71 } // constraints
72 } // scoring
73 } // core
74 
75 #endif