thorstenwagner / TraJ

Library for diffusion trajectory analysis
MIT License
11 stars 4 forks source link

Fix overloaded public method doFit() #3

Closed imagejan closed 8 years ago

imagejan commented 8 years ago

By default, run without using an initial guess. I hope I correctly understood the intention.

thorstenwagner commented 8 years ago

Thanks for your pull!

You could use the public void doFit(double[] xdata, double[] ydata, FitMethod method) to do the fit without initial guess. The method you've changed is especially for the case when you would like to use a initial guess and if you pass "false" for useInitialGuess it would NOT use the initial data. Right?

imagejan commented 8 years ago

@thorstenwagner alright, then false need to be changed to true. But in its initial form, the method would have called itself, no?

thorstenwagner commented 8 years ago

Uh! YES! Thanks :-)