Smooth interaction scores by switching the derivatives (force switch).
This function leaves the scores unaffected for distances below or equal to min_distance, returns zero for distances above max_distance, and between the two thresholds smoothes the score such that its first derivatives drop linearly, i.e. the score is simply multiplied by
where
is the distance, and
and
are the thresholds set in the ForceSwitch constructor.
This behavior is roughly equivalent to CHARMM's force switch nonbonded interaction smoothing (which is also the smoothing mechanism used by MODELLER).
Examples: charmm forcefield verbose, charmm forcefield
Inheritance diagram for IMP::atom::ForceSwitch:Public Member Functions | |
| ForceSwitch (double min_distance, double max_distance) | |
| double | operator() (double score, double distance) const |
| Smooth the score at a given distance. | |
| DerivativePair | operator() (double score, double deriv, double distance) const |
| Smooth the score and its first derivative at a given distance. | |
Static Public Member Functions | |
| static ForceSwitch * | get_from (IMP::base::Object *o) |
|
virtual |
Smooth the score at a given distance.
Implements IMP::atom::SmoothingFunction.
|
virtual |
Smooth the score and its first derivative at a given distance.
Implements IMP::atom::SmoothingFunction.