14 #ifndef INCLUDED_core_scoring_methods_CartBondedParameters_hh
15 #define INCLUDED_core_scoring_methods_CartBondedParameters_hh
18 #include <utility/pointer/owning_ptr.hh>
19 #include <utility/pointer/access_ptr.hh>
20 #include <numeric/angle.functions.hh>
21 #include <numeric/constants.hh>
22 #include <utility/pointer/ReferenceCount.hh>
23 #include <numeric/interpolation/spline/Bicubic_spline.hh>
24 #include <numeric/MathMatrix.hh>
26 #include <ObjexxFCL/FArray2D.hh>
115 ObjexxFCL::FArray2D< core::Real >
const &
mu,
116 ObjexxFCL::FArray2D< core::Real >
const &Ks,
123 void init ( ObjexxFCL::FArray2D< core::Real >
const &
mu, ObjexxFCL::FArray2D< core::Real >
const &Ks) {
124 using namespace numeric;
125 using namespace numeric::interpolation::spline;
126 MathMatrix< Real > mu_copy( 36, 36 ), Ks_copy( 36, 36 );
127 for (
Size jj = 0; jj < 36; ++jj ) {
128 for (
Size kk = 0; kk < 36; ++kk ) {
129 mu_copy( jj, kk ) =
mu(jj+1,kk+1);
130 Ks_copy( jj, kk ) = Ks(jj+1,kk+1);
137 void init ( numeric::MathMatrix< Real >
const &x, numeric::interpolation::spline::BicubicSpline &x_spline) {
138 using namespace numeric;
139 using namespace numeric::interpolation::spline;
141 BorderFlag periodic_boundary[2] = { e_Periodic, e_Periodic };
142 Real start_vals[2] = {5.0, 5.0};
143 Real deltas[2] = {10.0, 10.0};
144 bool lincont[2] = {
false,
false};
145 std::pair< Real, Real > unused[2];
146 unused[0] = std::make_pair( 0.0, 0.0 );
147 unused[1] = std::make_pair( 0.0, 0.0 );
148 x_spline.train( periodic_boundary, start_vals, deltas, x, lincont, unused );
210 #endif // INCLUDED_core_scoring_methods_CartesianBondedEnergy_HH