Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
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 
29 SinXOverX* SinXOverX::instance_;
30 
32 
34  instance_ = this;
35 }
36 
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