|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
Linear function More...
#include <IMP/core/Linear.h>
Linear function
Public Member Functions | |
| Linear (double offset, double slope) | |
| Create with the given offset and slope. | |
| virtual double | evaluate (double feature) const override |
| Calculate score with respect to the given feature. | |
| virtual DerivativePair | evaluate_with_derivative (double feature) const override |
| Calculate score and derivative with respect to the given feature. | |
| double | get_offset () const |
| double | get_slope () const |
| virtual std::string | get_type_name () const override |
| virtual ::IMP::VersionInfo | get_version_info () const override |
| Get information about the module and version of the object. | |
| void | set_offset (double f) |
| void | set_slope (double f) |
| Public Member Functions inherited from IMP::UnaryFunction | |
| UnaryFunction (std::string name="UnaryFunction%1%") | |
| Public Member Functions inherited from IMP::Object | |
| CheckLevel | get_check_level () const |
| get_derived_object (self) | |
| Return this object cast to the most derived subclass. | |
| LogLevel | get_log_level () const |
| void | set_check_level (CheckLevel l) |
| void | set_log_level (LogLevel l) |
| Set the logging level used in this object. | |
| const std::string & | get_name () const |
| Get the (not necessarily unique) name of this object. | |
| void | set_name (std::string name) |
| void | set_was_used (bool tf) const |
| void | show (std::ostream &out=std::cout) const |
| virtual void | clear_caches () |
Additional Inherited Members | |
| Protected Member Functions inherited from IMP::Object | |
| Object (std::string name) | |
| Construct an object with the given name. | |
| virtual void | do_destroy () |
| IMP::core::Linear::Linear | ( | double | offset, |
| double | slope ) |
|
overridevirtual |
Calculate score with respect to the given feature.
| [in] | feature | Value of feature being tested. |
Reimplemented from IMP::UnaryFunction.
|
overridevirtual |
Calculate score and derivative with respect to the given feature.
| [in] | feature | Value of feature being tested. |
Reimplemented from IMP::UnaryFunction.
Definition at line 40 of file Linear.h.
|
overridevirtual |
Reimplemented from IMP::Object.
|
overridevirtual |
Get information about the module and version of the object.
Reimplemented from IMP::Object.
Definition at line 45 of file Linear.h.