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),
35 double feature)
const override;
37 virtual double evaluate(
double feature)
const override;
41 void do_show(std::ostream &out)
const;
44 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.