Displaying 2 results from an estimated 2 matches for "iknots".
Did you mean:
knots
2011 Jan 17
1
isoreg memory leak?
...Ncells 121637 3.3 350000 9.4 350000 9.4
Vcells 578615 4.5 1300721 10.0 1300642 10.0
^^^
Looking at the C code, I believe the problem arises as a consequence of
using SETLENGTH to resize the result near the very end of isoreg.c,
and the solution is to make a copy of iKnots.
SEXP R_isoreg(SEXP y)
{
int n = LENGTH(y), i, ip, known, n_ip;
double tmp, slope;
SEXP yc, yf, iKnots, ans;
const char *anms[] = {"y", "yc", "yf", "iKnots", ""};
/* unneeded: y = coerceVector(y, REALSXP); */
PROTEC...
2004 Jan 28
3
unstability when using isoreg() function (PR#6494)
Full_Name: Petr Klasterecky
Version: 1.8.1
OS: Windows XP, Linux
Submission from: (NULL) (195.113.27.212)
The isoreg() function causes R to crash when called repeatedly. Consider the
following simple script:
{
library(modreg)
N <- 10
x <- rnorm(N)
print("Original x values:")
print(x)
for(n in (1:N)){print(y <- isoreg(x[1:n])$yf)}
}
I am able to run (call) it several