7#ifndef IMPCORE_OPEN_CUBIC_SPLINE_H
8#define IMPCORE_OPEN_CUBIC_SPLINE_H
10#include <IMP/core/core_config.h>
15IMPCORE_BEGIN_NAMESPACE
27 : P(S(values, minrange, spacing, extend),
"OpenCubicSpline%1%") {}
29 Float get_minrange()
const {
return get_score().get_minrange(); }
30 Float get_spacing()
const {
return get_score().get_spacing(); }
31 Floats get_values()
const {
return get_score().get_values(); }
32 bool get_extend()
const {
return get_score().get_extend(); }
36 return get_score().get_second_derivatives();
A Score on the distance between a pair of particles.
Single variable function.
Floats get_second_derivatives() const
Get the calculated second derivatives corresponding to the spline values.
Open cubic spline function.
double Float
Basic floating-point value (could be float, double...).
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A Score on the distance between a pair of particles.