Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SigmoidFunc.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/SigmoidFunc.hh
11 /// @brief Definition for functions used in definition of constraints.
12 /// @author
13 
14 #ifndef INCLUDED_core_scoring_constraints_SigmoidFunc_hh
15 #define INCLUDED_core_scoring_constraints_SigmoidFunc_hh
16 
19 #include <core/types.hh>
20 
21 // C++ Headers
22 
23 namespace core {
24 namespace scoring {
25 namespace constraints {
26 
27 class SigmoidFunc : public Func {
28 public:
29  SigmoidFunc( Real const x0_in, Real const slope_in ): x0_( x0_in ), slope_( slope_in ){}
30 
31  FuncOP
32  clone() const { return new SigmoidFunc( *this ); }
33 
34  Real func( Real const x ) const;
35  Real dfunc( Real const x ) const;
36 
37  void read_data( std::istream & in );
38 
39  Size show_violations( std::ostream& out, Real x, Size verbose_level, Real threshold) const;
40  void show_definition( std::ostream &out ) const;
41 
42  Real x0() const {
43  return x0_;
44  }
45 
46  Real slope() const {
47  return slope_;
48  }
49 
50  void x0( Real x ) {
51  x0_ = x;
52  }
53 
54  void slope( Real slope ) {
55  slope_ = slope;
56  }
57 
58 private:
61 };
62 
63 } // constraints
64 } // scoring
65 } // core
66 
67 #endif