IMP  2.1.1
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-2013 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>
15 
16 IMPCORE_BEGIN_NAMESPACE
17 
18 //! An OpenCubicSpline
19 /** See score_functor::OpenCubicSpline for docs. */
21  : public score_functor::ScoreUnaryFunction<score_functor::OpenCubicSpline> {
24 
25  public:
26  OpenCubicSpline(const Floats &values, Float minrange, Float spacing,
27  bool extend = false)
28  : P(S(values, minrange, spacing, extend)) {}
29 };
30 
31 IMPCORE_END_NAMESPACE
32 
33 #endif /* IMPCORE_OPEN_CUBIC_SPLINE_H */
Import IMP/kernel/UnaryFunction.h in the namespace.
A Score on the distance between a pair of particles.
Import IMP/kernel/unary_function_macros.h in the namespace.
double Float
Basic floating-point value (could be float, double...)
Definition: base/types.h:20
A Score on the distance between a pair of particles.