Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
scoring
constraints
HarmonicFunc.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 James Thompson
13
14
#ifndef INCLUDED_core_scoring_constraints_HarmonicFunc_hh
15
#define INCLUDED_core_scoring_constraints_HarmonicFunc_hh
16
17
#include <
core/scoring/constraints/HarmonicFunc.fwd.hh
>
18
#include <
core/scoring/constraints/Func.hh
>
19
#include <
core/types.hh
>
20
21
// C++ Headers
22
23
namespace
core {
24
namespace
scoring {
25
namespace
constraints {
26
27
class
HarmonicFunc
:
public
Func
{
28
public
:
29
HarmonicFunc
(
Real
const
x0_in,
Real
const
sd_in ):
x0_
( x0_in ),
sd_
( sd_in ){}
30
31
FuncOP
32
clone
()
const
;
// { return new HarmonicFunc( *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
void
show_definition
( std::ostream &out )
const
;
40
41
Real
x0
()
const
{
42
return
x0_
;
43
}
44
45
Real
sd
()
const
{
46
return
sd_
;
47
}
48
49
void
x0
(
Real
x ) {
50
x0_
= x;
51
}
52
53
void
sd
(
Real
sd
) {
54
sd_
=
sd
;
55
}
56
57
Size
58
show_violations
( std::ostream& out,
Real
x,
Size
verbose_level,
core::Real
threshold = 1 )
const
;
59
60
private
:
61
Real
x0_
;
62
Real
sd_
;
63
};
64
65
}
// constraints
66
}
// scoring
67
}
// core
68
69
#endif
Generated on Sat Jun 1 2013 11:35:33 for Rosetta 3.5 by
1.8.4