These functors take a single feature value, and return a corresponding score (and optionally also the first derivative).
Implementers should check out IMP_UNARY_FUNCTION() and IMP_UNARY_FUNCTION_INLINE().
Public Member Functions | |
def | __disown__ |
virtual double | evaluate (double feature) const =0 |
Calculate score with respect to the given feature. | |
virtual DerivativePair | evaluate_with_derivative (double feature) const =0 |
Calculate score and derivative with respect to the given feature. | |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
virtual double IMP::UnaryFunction::evaluate | ( | double | feature | ) | const [pure virtual] |
Calculate score with respect to the given feature.
[in] | feature | Value of feature being tested. |
virtual DerivativePair IMP::UnaryFunction::evaluate_with_derivative | ( | double | feature | ) | const [pure virtual] |
Calculate score and derivative with respect to the given feature.
[in] | feature | Value of feature being tested. |