Adaptive stepsize adjustment
AdaptiveStepsize is a wrapper for a takestep object and automatically adjusts the stepsize by calling takestep.scale() to obtain a certain acceptance ration during basing hopping runs.
| Parameters : | stepclass : takestep object
acc_ratio : float
factor : float
interval : integer
note: the keyword frequency is the same as interval. it exists only for backward compatability |
|---|
Methods
| __call__(*args, **kwargs) | |
| adjustStep() | adjust the stepsize |
| scale(factor) | scale the stepsize |
| takeStep(coords, **kwargs) | |
| updateStep(accepted, **kwargs) | tell us whether a step was accepted or rejected |