cost function

Cost Function for Nonlinear Fits