IMP  2.0.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-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>
22 {
25 public:
26  OpenCubicSpline(const Floats &values, Float minrange,
27  Float spacing, bool extend=false):
28  P(S(values, minrange, spacing, extend)){}
29 };
30 
31 IMPCORE_END_NAMESPACE
32 
33 #endif /* IMPCORE_OPEN_CUBIC_SPLINE_H */