IMP logo
IMP Reference Guide  2.13.0
The Integrative Modeling Platform
core/OpenCubicSpline.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/OpenCubicSpline.h \brief Open cubic spline function.
3  *
4  * Copyright 2007-2020 IMP Inventors. All rights reserved.
5  */
6 
7 #ifndef IMPCORE_OPEN_CUBIC_SPLINE_H
8 #define IMPCORE_OPEN_CUBIC_SPLINE_H
9 
10 #include <IMP/core/core_config.h>
11 #include <IMP/UnaryFunction.h>
14 
15 IMPCORE_BEGIN_NAMESPACE
16 
17 //! An OpenCubicSpline
18 /** See score_functor::OpenCubicSpline for docs. */
20  : public score_functor::ScoreUnaryFunction<score_functor::OpenCubicSpline> {
23 
24  public:
25  OpenCubicSpline(const Floats &values, Float minrange, Float spacing,
26  bool extend = false)
27  : P(S(values, minrange, spacing, extend)) {}
28 };
29 
30 IMPCORE_END_NAMESPACE
31 
32 #endif /* IMPCORE_OPEN_CUBIC_SPLINE_H */
Single variable function.
A Score on the distance between a pair of particles.
double Float
Basic floating-point value (could be float, double...)
Definition: types.h:20
A Score on the distance between a pair of particles.