Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CircularGeneral1D_Func.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/CircularGeneral1D_Func.hh
11 /// @brief A general 1D function that can be initialized by FArray or from text file. There's stuff like this all over Rosetta.
12 /// @author Rhiju Das
13 
14 #ifndef INCLUDED_core_scoring_constraints_CircularGeneral1D_Func_HH
15 #define INCLUDED_core_scoring_constraints_CircularGeneral1D_Func_HH
16 
18 #include <core/types.hh>
19 #include <ObjexxFCL/FArray1D.fwd.hh>
20 #include <ObjexxFCL/FArray1D.hh>
21 
22 // C++ Headers
23 
24 namespace core {
25 namespace scoring {
26 namespace constraints {
27 
28 /// @brief Function that allows return of arbitrary FArrays -- this time circularized.
29 class CircularGeneral1D_Func : public Func {
30 public:
32  ObjexxFCL::FArray1D< core::Real > const & data,
33  core::Real const & xmin,
34  core::Real const & xbin
35  );
36 
38 
39  FuncOP clone() const { return new CircularGeneral1D_Func( *this ); }
40 
41  Real func( Real const x ) const;
42  Real dfunc( Real const x ) const;
43 
44 private:
45 
46  ObjexxFCL::FArray1D< core::Real > data_;
49 
50 };
51 
52 } // constraints
53 } // scoring
54 } // core
55 
56 #endif