9 #ifndef IMPEXAMPLE_EXAMPLE_UNARY_FUNCTION_H
10 #define IMPEXAMPLE_EXAMPLE_UNARY_FUNCTION_H
12 #include <IMP/example/example_config.h>
17 IMPEXAMPLE_BEGIN_NAMESPACE
43 virtual double evaluate(
double feature)
const IMP_OVERRIDE {
44 return .5*k_*algebra::get_squared(feature - center_);
49 IMPEXAMPLE_END_NAMESPACE