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
AmberPeriodicFunc.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/AmberPeriodicFunc.hh
11
/// @brief Definition for a periodic function used in constraints.
12
/// @brief feel free to add definitions for other (derived) periodic functions to this file
13
/// @author Florian Richter
14
15
#ifndef INCLUDED_core_scoring_constraints_AmberPeriodicFunc_HH
16
#define INCLUDED_core_scoring_constraints_AmberPeriodicFunc_HH
17
18
#include <
core/scoring/constraints/AmberPeriodicFunc.fwd.hh
>
19
20
#include <
core/scoring/constraints/Func.hh
>
21
22
#include <utility/pointer/ReferenceCount.hh>
23
//#include <numeric/angle.functions.hh>
24
25
26
namespace
core {
27
namespace
scoring {
28
namespace
constraints {
29
30
31
/// @brief function of type y = 0.5 * k * (1 - cos(n * (x - x0) ) )
32
class
AmberPeriodicFunc
:
public
Func
{
33
34
public
:
35
AmberPeriodicFunc
(
Real
const
x0_in,
Real
const
k_in,
Real
const
n_periodic_in) :
x0_
( x0_in ),
k_
( k_in ),
n_periodic_
( n_periodic_in ){}
36
37
FuncOP
38
clone
()
const
{
return
new
AmberPeriodicFunc
( *
this
); }
39
40
Real
func
(
Real
const
x )
const
;
41
Real
dfunc
(
Real
const
x )
const
;
42
43
void
read_data
( std::istream& in );
44
45
void
show_definition
( std::ostream &out )
const
;
46
47
Size
48
show_violations
( std::ostream& out,
Real
x,
Size
verbose_level,
core::Real
threshold = 1 )
const
;
49
50
51
private
:
52
Real
x0_
;
53
Real
k_
;
54
Real
n_periodic_
;
55
56
57
};
//amber periodic func
58
59
60
61
}
// constraints
62
}
// scoring
63
}
// core
64
65
66
#endif
Generated on Sat Jun 1 2013 11:34:54 for Rosetta 3.5 by
1.8.4