Skip to content
Prev 84 / 523 Next

[RsR] covrob --- some OOP-comments

Dear all,

I was waiting with my comments on Peter&Heinrich's contribution until I have
a working example (in rrcov/robustbase) but following Peter I'll add now my
2 cent.

I agree completely with Peter's comments:
- encapsulation by a control object instead of ellipses
- using of access or methods. For example an access or getDistance() can
either return the distances if present or recompute them each time. Ideal
would be a kind of lazy evaluation when the distances are computed by first
access and stored and the next time they are just returned, but I do not
know how to do this in R.
- S4 style show/plot/summary methods

And in addition:

- I would prefer to use inheritance instead of wrapping, i.e. define a base
class for classic estimates, derive an abstract robust-estimates class from
it and derive concrete robust estimates as necessary: mcd, M, ogk, etc. This 
allowes to treat the objects polymorphically. I have tried to represent 
these ideas in the following class diagram:

http://www.het2.org/wiki/upload/d/d6/Rrcov.gif

and I have just uploaded a new version of rrcov to CRAN containing some of
the implementation (psi-functions for constrained M-estimates).

And last but not least - no comments but COMPLIMENTS for the covariance
structure plots!

best regards,
Valentin

----- Original Message ----- 
From: "Peter Ruckdeschel" <Peter.Ruckdeschel at uni-bayreuth.de>
To: "Peter Filzmoser" <P.Filzmoser at tuwien.ac.at>;
<R-SIG-Robust at stat.math.ethz.ch>
Sent: Wednesday, March 22, 2006 6:06 PM
Subject: Re: [RsR] covrob --- some OOP-comments
--------------------------------------------------------------------------------