Displaying 1 result from an estimated 1 matches for "runmean_exact".
2011 Sep 23
0
(Requested) caTools::runmean Patch
...0 6.0
As you can see (and can be verified in the code), unlike the call for the
"C" algorithm, the "exact" algorithm does not make sure that x is stored as
double resulting in occasional unexpected behavior.
## From caTools::runmean
if (alg == "exact") {
.C("runmean_exact", x, y, as.integer(n), as.integer(k), NAOK = TRUE, DUP
= FALSE, PACKAGE = "caTools")
}
else if (alg == C"){
.C("runmean", as.double(x), y, as.integer(n), as.integer(k), NAOK =
TRUE, DUP = FALSE, PACKAGE = "caTools")
}
Thanks once again for the fantastic...