search for: epakern

Displaying 1 result from an estimated 1 matches for "epakern".

Did you mean: cerakern
2001 Feb 27
1
Generate temporary objects or not?
Dear all, Playing with a toy problem, I wondered how much it costs to generate `internal' objects in a function that are not strictly needed. An example: mean(apply(t(matrix(as.vector(x) - x0 / h, , nrow=nrow(x), ncol=ncol(x))), c(2) epakern, dim)) / h^dim It would be more _readable_ if I defined the object inside the apply(), stick it there and rm() after, but my feeling is that creating it and than removing is costlier. (If the above structure is too simple, imagine something more complicated) Am I right, it does not matter, since i...