## Curve Data Fitting

The objective of this model is to fit a curve to a number of points. You can add points (up to a limit) by clicking on the panel.

Your task is to adjust the parameters of the curve y = f(x), (or the function f(x) itself!) in order to obtain the best possible fit. You have up to 5 parameters, a, b, c, d, and e.

Edit the "computeBestFit()" method in the Custom panel of the model to edit your best fit algorithm. Then, click on the "Best Fit" button, each time it is displayed in red, to invoke this method.

## NumericJS model element

This model uses the Numeric JS model element (see the Elements panel of the model) to help you solve the system of linear equations required for the least squares approximation.