mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 12:53:52 +01:00
clean up
This commit is contained in:
parent
c66ada2271
commit
e773a81bcb
1 changed files with 4 additions and 6 deletions
|
|
@ -411,15 +411,13 @@ optim.dog_leg = function (subsys, rough) {
|
|||
// break;
|
||||
// }
|
||||
|
||||
// see if we are already finished
|
||||
if (stop)
|
||||
if (stop) {
|
||||
break;
|
||||
|
||||
// get the new values
|
||||
var err_new;
|
||||
}
|
||||
|
||||
x_new = n.add(x, h_dl);
|
||||
subsys.setParams(x_new);
|
||||
err_new = subsys.calcResidual(fx_new);
|
||||
var err_new = subsys.calcResidual(fx_new);
|
||||
subsys.fillJacobian(Jx_new);
|
||||
|
||||
// calculate the linear model and the update ratio
|
||||
|
|
|
|||
Loading…
Reference in a new issue