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
saxs
SinXOverX.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 core/scoring/saxs/SinXOverX.cc
11
/// @author Dominik Gront (dgront@chem.uw.edu.pl)
12
13
14
// Unit headers
15
#include <
core/scoring/saxs/SinXOverX.hh
>
16
17
// C++
18
// AUTO-REMOVED #include <string>
19
#include <cmath>
20
21
#include <utility/vector1.hh>
22
23
24
namespace
core {
25
namespace
scoring {
26
namespace
saxs {
27
28
utility::vector1<Real>
SinXOverX::sin_x_over_x_
;
29
SinXOverX*
SinXOverX::instance_
;
30
31
SinXOverX::SinXOverX
() {
32
33
fill_sin_x_over_x_table
();
34
instance_
=
this
;
35
}
36
37
void
SinXOverX::fill_sin_x_over_x_table
() {
38
39
sin_x_over_x_
.push_back(2.0);
40
for
(
Real
x=0.001;x<=1000;x+=0.01)
41
sin_x_over_x_
.push_back( 2.0*sin(x)/x );
42
}
43
44
45
}
// saxs
46
}
// scoring
47
}
// core
Generated on Sat Jun 1 2013 11:40:07 for Rosetta 3.5 by
1.8.4