Closed cubic spline function.
More...
#include <IMP/core/ClosedCubicSpline.h>
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.
- See Also
- OpenCubicSpline
Definition at line 23 of file ClosedCubicSpline.h.
IMP::core::ClosedCubicSpline::ClosedCubicSpline |
( |
const Floats & |
values, |
|
|
double |
minrange, |
|
|
double |
spacing |
|
) |
| |
- Parameters
-
[in] | values | Score value at each spline point. |
[in] | minrange | Feature value at first spline point. |
[in] | spacing | Distance (in feature space) between points |
virtual double IMP::core::ClosedCubicSpline::evaluate |
( |
double |
feature | ) |
const |
|
virtual |
virtual DerivativePair IMP::core::ClosedCubicSpline::evaluate_with_derivative |
( |
double |
feature | ) |
const |
|
virtual |
- Parameters
-
[in] | feature | Value of feature being tested. |
- Returns
- a FloatPair containing the score and its partial derivative with respect to the given feaure.
Reimplemented from IMP::kernel::UnaryFunction.
The documentation for this class was generated from the following file: