Rosetta 3.3
Namespaces | Classes | Functions
numeric::interpolation Namespace Reference

Namespaces

namespace  full
namespace  periodic_range
namespace  spline

Classes

struct  HistogramOP
struct  HistogramCOP
struct  HistogramAP
struct  HistogramCAP
class  Histogram
 A histogram with fixed-width bins. More...

Functions

template<typename X , typename F >
interpolated (X const &x, X const &x1, X const &x2, F const &f1, F const &f2)
 Linearly interpolated value: f( x )
template<typename X , typename F >
interpolated (X const &a, F const &f1, F const &f2)
 Linearly interpolated value: f( x )
template<typename X , typename F >
interpolated_delta (X const &a, F const &f1, F const &f2)
 Linearly interpolated delta value: f( x ) - f1.
template<typename X , typename Y , typename F >
bilinearly_interpolated (X const &x, X const &x1, X const &x2, Y const &y, Y const &y1, Y const &y2, F const &f11, F const &f12, F const &f21, F const &f22)
 Bilinearly interpolated value: f( x, y )
template<typename X , typename Y , typename F >
bilinearly_interpolated (X const &ax, Y const &ay, F const &f11, F const &f12, F const &f21, F const &f22)
 Bilinearly interpolated value.
template<typename X , typename Y , typename F >
bilinearly_interpolated (X const &ax, Y const &ay, X const &bx, Y const &by, F const &f11, F const &f12, F const &f21, F const &f22)
 Bilinearly interpolated value.
spline::SplineGenerator spline_from_file (std::string const &filename, platform::Real const &bin_size)
 given a file, return a 2D spline

Function Documentation

template<typename X , typename Y , typename F >
F numeric::interpolation::bilinearly_interpolated ( X const &  x,
X const &  x1,
X const &  x2,
Y const &  y,
Y const &  y1,
Y const &  y2,
F const &  f11,
F const &  f12,
F const &  f21,
F const &  f22 
) [inline]

Bilinearly interpolated value: f( x, y )

References ObjexxFCL::fmt::X().

template<typename X , typename Y , typename F >
F numeric::interpolation::bilinearly_interpolated ( X const &  ax,
Y const &  ay,
F const &  f11,
F const &  f12,
F const &  f21,
F const &  f22 
) [inline]

Bilinearly interpolated value.

References ObjexxFCL::fmt::X().

template<typename X , typename Y , typename F >
F numeric::interpolation::bilinearly_interpolated ( X const &  ax,
Y const &  ay,
X const &  bx,
Y const &  by,
F const &  f11,
F const &  f12,
F const &  f21,
F const &  f22 
) [inline]

Bilinearly interpolated value.

References numeric::eq_tol(), and ObjexxFCL::fmt::X().

template<typename X , typename F >
F numeric::interpolation::interpolated ( X const &  x,
X const &  x1,
X const &  x2,
F const &  f1,
F const &  f2 
) [inline]
template<typename X , typename F >
F numeric::interpolation::interpolated ( X const &  a,
F const &  f1,
F const &  f2 
) [inline]

Linearly interpolated value: f( x )

Note:
Extrapolates if a not in [ 0, 1 ]
template<typename X , typename F >
F numeric::interpolation::interpolated_delta ( X const &  a,
F const &  f1,
F const &  f2 
) [inline]

Linearly interpolated delta value: f( x ) - f1.

Note:
Extrapolates if a not in [ 0, 1 ]
spline::SplineGenerator numeric::interpolation::spline_from_file ( std::string const &  filename,
platform::Real const &  bin_size 
)

given a file, return a 2D spline

read in a file, read out a spline. The file should be tab seperated, and have two lines The first field of one line should be "x_axis", the next fields should be the x values of the points for the spline The first field of the other line should be "y_axis", the next fields should be the y values for the points on the spline For an example, see "epr_distance_potential.histogram"

References numeric::interpolation::spline::SplineGenerator::add_known_value(), utility::io::izstream::close(), get_pdb::count, utility::from_string(), ObjexxFCL::getline(), ObjexxFCL::index(), get_pdb::line, utility::io::izstream::open(), utility::string_split(), and utility_exit_with_message.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines