pub trait StepController<S: Scalar> {
// Required methods
fn propose(&mut self, h: S, err: S, order: usize) -> StepProposal<S>;
fn accept(&mut self, h: S, err: S);
fn reject(&mut self, h: S, err: S);
fn reset(&mut self);
}Expand description
Trait for step size controllers.
Required Methods§
Sourcefn propose(&mut self, h: S, err: S, order: usize) -> StepProposal<S>
fn propose(&mut self, h: S, err: S, order: usize) -> StepProposal<S>
Propose a new step size based on the error estimate.
§Arguments
h- Current step sizeerr- Error estimate (scaled, should be < 1 for acceptance)order- Order of the method