commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject [Math] HarmonicFitter and GaussianFitter
Date Sat, 09 Jun 2012 00:00:42 GMT
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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message