Linear function
More...
#include <IMP/core/Linear.h>
Linear function
- Note
- The offset is not meaningful for optimization, but does make the displayed energies nicer.
Definition at line 22 of file Linear.h.
IMP::core::Linear::Linear |
( |
double |
offset, |
|
|
double |
slope |
|
) |
| |
Create with the given offset and slope.
Definition at line 25 of file Linear.h.
virtual double IMP::core::Linear::evaluate |
( |
double |
feature | ) |
const |
|
overridevirtual |
Calculate score with respect to the given feature.
- Parameters
-
[in] | feature | Value of feature being tested. |
- Returns
- Score
Reimplemented from IMP::UnaryFunction.
Definition at line 32 of file Linear.h.
virtual DerivativePair IMP::core::Linear::evaluate_with_derivative |
( |
double |
feature | ) |
const |
|
overridevirtual |
Calculate score and derivative with respect to the given feature.
- Parameters
-
[in] | feature | Value of feature being tested. |
- Returns
- a DerivativePair containing the score and its partial derivative with respect to the given feature.
Reimplemented from IMP::UnaryFunction.
Definition at line 36 of file Linear.h.
Get information about the module and version of the object.
Reimplemented from IMP::Object.
Definition at line 41 of file Linear.h.
The documentation for this class was generated from the following file: