Hi.

I'm a bit annoyed that "HarmonicFitter" and "GaussianFitter" suffer from the
same design flaw as "PolynomialFitter", namely that it is possible to call
the non-overridden "fit" with an argument that is not of the right type
(i.e. "HarmonicOscillator.Parametric" and "Gaussian.Parametric",
respectively).
However we cannot simply remove them as in MATH-800, since those classes
perform non-trivial computations.
One possibility is to override the "fit" methods that should not be used,
and have them throw an exception.

What do you think?
Which exception would be most appropriate?


Regards,
Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to