Displaying 1 result from an estimated 1 matches for "madfilt".
Did you mean:
madfile
2007 Dec 23
1
Problem with initialize of S4 classes
...Filter' [package "xps"] with 11 slots
..@ mad :List of 2
.. ..$ : num 0.5
.. ..$ : num 0.01
..@ numfilters : num 0
This is only partly correct, e.g. numfilters is 0.
Only the following code gives the correct result:
> prefltr <- new("PreFilter")
> madFilter(prefltr) <- c(0.5,0.01)
> str(prefltr)
Formal class 'PreFilter' [package "xps"] with 11 slots
..@ mad :List of 2
.. ..$ cutoff : num 0.5
.. ..$ epsilon: num 0.01
..@ numfilters : num 1
As you see, the loading "scriptPreFilter.R" calls method init...