commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <>
Subject [Math] HarmonicFitter and GaussianFitter
Date Sat, 09 Jun 2012 00:00:42 GMT

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",
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message