Fit y ≈ model(x, θ) by least squares. nls((x, [a, b]) => a * (1 - Math.exp(-b * x)), x, y, { start: [500, 1e-4], names: ['a', 'b'] })
Fit y ≈ model(x, θ) by least squares. nls((x, [a, b]) => a * (1 - Math.exp(-b * x)), x, y, { start: [500, 1e-4], names: ['a', 'b'] })