This function interpolates a set of eveny spaced values using a spline. The the second derivative at the termini is set to zero. See ClosedCubicSpline for a periodic version.

Public Member Functions | |
| 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 |
| OpenCubicSpline (const Floats &values, Float minrange, Float spacing, bool extend=false) | |
| Constructor. | |
Friends | |
| template<class T > | |
| void | IMP::internal::unref (T *) |
| IMP::core::OpenCubicSpline::OpenCubicSpline | ( | const Floats & | values, | |
| Float | minrange, | |||
| Float | spacing, | |||
| bool | extend = false | |||
| ) |
Constructor.
| [in] | values | Score value at each spline point |
| [in] | minrange | Feature value at first spline point |
| [in] | spacing | Distance (in feature space) between points |
| [in] | extend | If extend is true, the nearest value is used as the value for any feature outside of the range. |