IMP  2.4.0
The Integrative Modeling Platform
Public Member Functions | List of all members
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 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. More...
 
template<unsigned int D>
bool get_is_trivially_zero (kernel::Model *, const base::Array< D, kernel::ParticleIndex > &, double squared_distance) const
 
template<unsigned int D>
double get_maximum_range (kernel::Model *, const base::Array< D, kernel::ParticleIndex > &) const
 
template<unsigned int D>
double get_score (kernel::Model *, const base::Array< D, kernel::ParticleIndex > &, double distance) const
 
template<unsigned int D>
DerivativePair get_score_and_derivative (kernel::Model *, const base::Array< D, kernel::ParticleIndex > &, double distance) const
 
- Public Member Functions inherited from IMP::score_functor::Score
kernel::ModelObjectsTemp get_inputs (kernel::Model *m, const kernel::ParticleIndexes &pis) const
 
template<unsigned int D>
bool get_is_trivially_zero (kernel::Model *m, const base::Array< D, kernel::ParticleIndex > &p, double squared_distance) const
 
template<unsigned int D>
double get_maximum_range (kernel::Model *m, const base::Array< D, kernel::ParticleIndex > &p) const
 
template<unsigned int D>
double get_score (kernel::Model *m, const base::Array< D, kernel::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 (kernel::Model *m, const base::Array< D, kernel::ParticleIndex > &p, double distance) const
 Return the score and derivative at the passed feature size (eg distance). More...
 
void show (std::ostream &) const
 

Constructor & Destructor Documentation

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.


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