IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::score_functor::OpenCubicSpline Class Reference

Open cubic spline function. More...

#include <IMP/score_functor/OpenCubicSpline.h>

Inheritance diagram for IMP::score_functor::OpenCubicSpline:

Detailed Description

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.

See also
core::ClosedCubicSpline

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.
Float get_extend () const
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
Float get_minrange () 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
Floats get_second_derivatives () const
 Get the calculated second derivatives corresponding to the spline values.
Float get_spacing () const
Floats get_values () 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).
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).
void show (std::ostream &) const

Constructor & Destructor Documentation

◆ OpenCubicSpline()

IMP::score_functor::OpenCubicSpline::OpenCubicSpline ( const Floats & values,
Float minrange,
Float spacing,
bool extend = false )

Constructor.

Parameters
[in]valuesScore value at each spline point
[in]minrangeFeature value at first spline point
[in]spacingDistance (in feature space) between points
[in]extendIf 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.

Member Function Documentation

◆ get_extend()

Float IMP::score_functor::OpenCubicSpline::get_extend ( ) const

Definition at line 109 of file score_functor/OpenCubicSpline.h.

◆ get_is_trivially_zero()

template<unsigned int D>
bool IMP::score_functor::OpenCubicSpline::get_is_trivially_zero ( Model * ,
const Array< D, ParticleIndex > & ,
double squared_distance ) const

Definition at line 98 of file score_functor/OpenCubicSpline.h.

◆ get_maximum_range()

template<unsigned int D>
double IMP::score_functor::OpenCubicSpline::get_maximum_range ( Model * ,
const Array< D, ParticleIndex > &  ) const

Definition at line 90 of file score_functor/OpenCubicSpline.h.

◆ get_minrange()

Float IMP::score_functor::OpenCubicSpline::get_minrange ( ) const

Definition at line 107 of file score_functor/OpenCubicSpline.h.

◆ get_score()

template<unsigned int D>
double IMP::score_functor::OpenCubicSpline::get_score ( Model * ,
const Array< D, ParticleIndex > & ,
double distance ) const

Definition at line 53 of file score_functor/OpenCubicSpline.h.

◆ get_score_and_derivative()

template<unsigned int D>
DerivativePair IMP::score_functor::OpenCubicSpline::get_score_and_derivative ( Model * ,
const Array< D, ParticleIndex > & ,
double distance ) const

Definition at line 71 of file score_functor/OpenCubicSpline.h.

◆ get_second_derivatives()

Floats IMP::score_functor::OpenCubicSpline::get_second_derivatives ( ) const

Get the calculated second derivatives corresponding to the spline values.

Definition at line 114 of file score_functor/OpenCubicSpline.h.

◆ get_spacing()

Float IMP::score_functor::OpenCubicSpline::get_spacing ( ) const

Definition at line 108 of file score_functor/OpenCubicSpline.h.

◆ get_values()

Floats IMP::score_functor::OpenCubicSpline::get_values ( ) const

Definition at line 111 of file score_functor/OpenCubicSpline.h.


The documentation for this class was generated from the following file: