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.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/saxs/SAXSEnergyCreatorFA.hh
11
/// @brief Declaration for the class that connects SAXSEnergyCreator with the ScoringManager
12
/// @author Dominik Gront dgront@chem.uw.edu.pl
13
14
#ifndef INCLUDED_core_scoring_saxs_SinXOverX_hh
15
#define INCLUDED_core_scoring_saxs_SinXOverX_hh
16
17
#include <
core/types.hh
>
18
#include <utility/vector1.hh>
19
20
21
namespace
core {
22
namespace
scoring {
23
namespace
saxs {
24
25
class
SinXOverX
{
26
public
:
27
28
static
SinXOverX
*
get_instance
() {
29
30
if
(!
instance_
)
instance_
=
new
SinXOverX
();
31
return
instance_
;
32
}
33
34
core::Real
evaluate
(
core::Real
x)
const
{
35
36
core::Size
tmp_i = ((
Size
) (x * 100) + 1);
37
return
sin_x_over_x_
[tmp_i];
38
}
39
40
private
:
41
static
SinXOverX
*
instance_
;
42
static
utility::vector1<Real>
sin_x_over_x_
;
43
SinXOverX
();
44
void
fill_sin_x_over_x_table
();
45
};
46
47
}
48
}
49
}
50
51
#endif
Generated on Sat Jun 1 2013 11:40:07 for Rosetta 3.5 by
1.8.4