7 #ifndef IMPCORE_HARMONIC_UPPER_BOUND_H
8 #define IMPCORE_HARMONIC_UPPER_BOUND_H
10 #include <IMP/core/core_config.h>
13 IMPCORE_BEGIN_NAMESPACE
31 : Harmonic::evaluate_with_derivative(feature);
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Upper bound harmonic function (non-zero when feature > mean)
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual double evaluate(double feature) const
Calculate score with respect to the given feature.
virtual DerivativePair evaluate_with_derivative(double feature) const
Calculate score and derivative with respect to the given feature.
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.
HarmonicUpperBound(Float mean, Float k)
double Float
Basic floating-point value (could be float, double...)
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Harmonic function (symmetric about the mean)