IMP Reference Guide
2.18.0
The Integrative Modeling Platform
|
Open cubic spline function. More...
#include <IMP/score_functor/OpenCubicSpline.h>
Open cubic spline function.
This function interpolates a set of evenly spaced values using a spline. The second derivative at the termini is set to zero. See core::ClosedCubicSpline for a periodic version.
Definition at line 23 of file score_functor/OpenCubicSpline.h.
Public Member Functions | |
OpenCubicSpline (const Floats &values, Float minrange, Float spacing, bool extend=false) | |
Constructor. More... | |
template<unsigned int D> | |
bool | get_is_trivially_zero (Model *, const Array< D, ParticleIndex > &, double squared_distance) const |
template<unsigned int D> | |
double | get_maximum_range (Model *, const Array< D, ParticleIndex > &) const |
template<unsigned int D> | |
double | get_score (Model *, const Array< D, ParticleIndex > &, double distance) const |
template<unsigned int D> | |
DerivativePair | get_score_and_derivative (Model *, const Array< D, ParticleIndex > &, double distance) const |
Public Member Functions inherited from IMP::score_functor::Score | |
ModelObjectsTemp | get_inputs (Model *m, const ParticleIndexes &pis) const |
template<unsigned int D> | |
bool | get_is_trivially_zero (Model *m, const Array< D, ParticleIndex > &p, double squared_distance) const |
template<unsigned int D> | |
double | get_maximum_range (Model *m, const Array< D, ParticleIndex > &p) const |
template<unsigned int D> | |
double | get_score (Model *m, const Array< D, ParticleIndex > &p, double distance) const |
Return the score at the passed feature size (eg distance). More... | |
template<unsigned int D> | |
DerivativePair | get_score_and_derivative (Model *m, const Array< D, ParticleIndex > &p, double distance) const |
Return the score and derivative at the passed feature size (eg distance). More... | |
void | show (std::ostream &) const |
IMP::score_functor::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. |
Definition at line 39 of file score_functor/OpenCubicSpline.h.