7 #ifndef IMPCORE_COSINE_H
8 #define IMPCORE_COSINE_H
10 #include <IMP/core/core_config.h>
13 IMPCORE_BEGIN_NAMESPACE
30 : force_constant_(force_constant),
31 periodicity_(periodicity),
36 virtual double evaluate(
double feature)
const;
40 void do_show(std::ostream &out)
const;
43 Float force_constant_;
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.
Single variable function.
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.
virtual DerivativePair evaluate_with_derivative(double feature) const
Calculate score and derivative with respect to the given feature.
double Float
Basic floating-point value (could be float, double...)
Cosine(Float force_constant, int periodicity, Float phase)
Constructor.
Abstract single variable functor class for score functions.