Skip to content
Prev 112 / 523 Next

[RsR] covrob --- some OOP-comments

I have finally uploaded the new version of rrcov containing the S4 classes 
which previously were in the preview package rr4cov. May be it is necessary 
to write more about it, but for now only briefly:

- unfortunately I still have not removed the classes and data sets that are 
already in robustbase
- I have solved the naming convention and the coexisting of S3 and S4 
classes in the following way:
    - a class name starts with a capital letter
    - a function, generic or method name starts with a lowercase, except for 
the functions returning an S4 objects, which have the same name as the 
corresponding S4 class (aka constructor). Thus we can have parallel covMest 
(function returning S3 object "mest") and CovMest (function) returning a 
CovMest (class) object.
    - In the ..\inst\doc directory I have added UML diagrams depicting the 
class hierarchy, next time also vignette will appear.
    - The new S4 classes have their own show/plot/summary methods
    - later the S3 classes and the corresponding functions will be 
"deprecated", similarly as in Java: i.e. a function which is deprecated 
issues a warning each time when invoked, saying that it is deprecated, in 
one of the following releases will be removed and it is recommended to use 
the function so and so.

- Control parameters: in the same way as above, rrcov.control will be 
deprecated. Now we will have a CovControl virtual base class and derived 
classes like CovControlMest, CovControlMcd, etc. each containing the 
necessary parameters. The "estim" parameter is "substituted" by a generic 
'estimate' and methods 'estimate' in each of the derived classes.

- There was an inconsistency in the returning of the correlation in covMest 
as compared to covMcd - now this parameter and value are removed completely 
and a user wants to use the correlation matrix instead of the covariance, 
she/he can call the accessor method getCorr()  instead of getCov().

best regards,
Valentin



----- Original Message ----- 
From: "Martin Maechler" <maechler at stat.math.ethz.ch>
To: "Valentin Todorov" <valentin.todorov at chello.at>
Cc: <R-SIG-Robust at stat.math.ethz.ch>
Sent: Monday, March 27, 2006 2:41 PM
Subject: Re: [RsR] covrob --- some OOP-comments