7 #ifndef IMPCORE_COSINE_H
8 #define IMPCORE_COSINE_H
10 #include <IMP/core/core_config.h>
14 IMPCORE_BEGIN_NAMESPACE
31 : force_constant_(force_constant),
32 periodicity_(periodicity),
37 virtual double evaluate(
double feature)
const;
41 void do_show(std::ostream &out)
const;
44 Float force_constant_;
virtual DerivativePair evaluate_with_derivative(double feature) const
Calculate score and derivative with respect to the given feature.
Import IMP/kernel/UnaryFunction.h in the namespace.
Abstract single variable functor class for score functions.
virtual double evaluate(double feature) const
Calculate score with respect to the given feature.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.
Import IMP/kernel/unary_function_macros.h in the namespace.
double Float
Basic floating-point value (could be float, double...)
Cosine(Float force_constant, int periodicity, Float phase)
Constructor.