Implement the line-fit routine that is executed from the plot() method on each plot interaction. The results (parameters a & b) should be stored inside the GRAPHCONTROL struct for further reference and plot (some caching can be used to avoid calculating the parameters over and over on each plot).
Implement the line-fit routine that is executed from the plot() method on each plot interaction. The results (parameters a & b) should be stored inside the GRAPHCONTROL struct for further reference and plot (some caching can be used to avoid calculating the parameters over and over on each plot).