An Adaptive Nonlinear Least-Squares Algorithm | Synapse