Skip to content
Prev 11535 / 63468 Next

Please make lowess() generic

On Wed, 21 Jan 2004, Martin Maechler wrote:

            
Not quite: loess() is not generic, but it does have a formula interface
and it was recommended over lowess() by the authors of both.  (loess()
is not generic for the reasons I sketch below.)
It seems to me only to be worth making functions generic if they are
likely to be extended in unforeseen ways: making image() generic was one
of those.  For lowess, the only plausible methods are for formula and
vector, so why not just write a wrapper called lowessForm?   I took the 
same approach when re-implementing loess: it could have had a matrix + 
vector interface but it did not seem worth setting up a generic just for 
that.