pub fn stepsize_blend(
old_x: &DVector<f64>,
new_x: &DVector<f64>,
max_step: f64,
factor: f64,
) -> DVector<f64>Expand description
Applies step size reduction and capping.
ยงAlgorithm
- Compute displacement:
dX = newX - oldX - Scale by
factor - If
||dX|| > max_step, rescale tomax_step - Return
oldX + scaled_dX