This function is a cubic spline interpolating a set of values. The function is periodic, so the score will also have the same value at minrange + spacing * values.size(). See OpenCubicSpline for a non-periodic spline.
Public Member Functions | |
ClosedCubicSpline (const Floats &values, double minrange, double spacing) | |
virtual double | evaluate (double feature) const |
virtual DerivativePair | evaluate_with_derivative (double feature) const |
virtual std::string | get_type_name () const |
virtual ::IMP::VersionInfo | get_version_info () const |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
IMP::core::ClosedCubicSpline::ClosedCubicSpline | ( | const Floats & | values, | |
double | minrange, | |||
double | spacing | |||
) |
[in] | values | Score value at each spline point. |
[in] | minrange | Feature value at first spline point. |
[in] | spacing | Distance (in feature space) between points |