* @throws FunctionEvaluationException in the event of a test case error
*/
@Test
public void testFit01()
throws OptimizationException, FunctionEvaluationException {
CurveFitter fitter = new CurveFitter(new LevenbergMarquardtOptimizer());
addDatasetToCurveFitter(DATASET1, fitter);
double[] parameters = fitter.fit(new ParametricGaussianFunction(),
new double[] {8.64753e3, 3.483323e6, 4.06322, 1.946857e-2});
assertEquals(99200.94715858076, parameters[0], 1e-4);
assertEquals(3410515.221897707, parameters[1], 1e-4);
assertEquals(4.054928275257894, parameters[2], 1e-4);
assertEquals(0.014609868499860, parameters[3], 1e-4);