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
SOGFunc.cc
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/SOGFunc.hh
11
/// @brief Definition for functions used in definition of constraints.
12
/// @author James Thompson
13
14
#include <utility/pointer/ReferenceCount.hh>
15
// AUTO-REMOVED #include <numeric/util.hh>
16
17
#include <
core/scoring/constraints/SOGFunc.hh
>
18
#include <
core/scoring/constraints/SOGFunc_Impl.hh
>
19
#include <
core/types.hh
>
20
21
// C++ Headers
22
// AUTO-REMOVED #include <iostream>
23
24
#include <utility/vector1.hh>
25
26
27
namespace
core {
28
namespace
scoring {
29
namespace
constraints {
30
31
SOGFunc::SOGFunc
(
32
const
utility::vector1< core::Real >
& means,
33
const
utility::vector1< core::Real >
& sdevs,
34
const
utility::vector1< core::Real >
& weights
35
) : member_(means, sdevs, weights) {}
36
37
SOGFunc::SOGFunc
(
38
core::Real
mean,
39
core::Real
sdev
40
) : member_(utility::
vector1
< core::
Real
>(1,mean),
41
utility::
vector1
< core::
Real
>(1,sdev),
42
utility::
vector1
< core::
Real
>(1,1.0)) {}
43
44
void
45
SOGFunc::read_data
( std::istream & in ) {
46
member_
.
read_data
( in );
47
}
48
49
void
50
SOGFunc::clear_
() {
51
member_
.
clear_
();
52
}
53
54
core::Real
55
SOGFunc::get_alt_score_
(
Real
const
x )
const
{
56
return
member_
.
get_alt_score_
(x);
57
}
58
59
Real
60
SOGFunc::func
(
Real
const
x )
const
{
61
return
member_
.
func
(x);
62
}
// func
63
64
Real
65
SOGFunc::dfunc
(
Real
const
x )
const
{
66
return
member_
.
dfunc
(x);
67
}
// dfunc
68
69
void
SOGFunc::check_bounds
(
Real
const
x,
Real
const
val )
const
{
70
member_
.
check_bounds
(x,val);
71
}
72
73
void
SOGFunc::show_definition
( std::ostream & out )
const
{
74
member_
.
show_definition
(out);
75
}
// show_definition
76
77
}
// namespace constraints
78
}
// namespace scoring
79
}
// namespace core
Generated on Sat Jun 1 2013 11:35:51 for Rosetta 3.5 by
1.8.4