search for: reg_xy

Displaying 2 results from an estimated 2 matches for "reg_xy".

Did you mean: reg_sz
2018 Dec 30
0
Bug report with patch: `stats:::regularize.values()` always creates full copies of `x` and `y`
...to be a forceful reordering in lines 37-39 of 'approx.R' file. If reordering is done only if `x` is unsorted then no copies are created. Also this doesn't seem like breaking any existing code. There is a patch attached. Reproducable code: x <- seq(1, 100, 1) y <- seq(1, 100, 1) reg_xy <- stats:::regularize.values(x, y, mean) # Regularized versions of `x` and `y` are identical to input but are stored at # different places identical(x, reg_xy[["x"]]) #> [1] TRUE .Internal(inspect(x)) #> @15719b0 14 REALSXP g0c7 [NAM(3)] (len=100, tl=0) 1,2,3,4,5,... .Internal(i...
2019 Jan 04
0
Bug report with patch: `stats:::regularize.values()` always creates full copies of `x` and `y`
...to be a forceful reordering in lines 37-39 of 'approx.R' file. If reordering is done only if `x` is unsorted then no copies are created. Also this doesn't seem like breaking any existing code. There is a patch attached. Reproducable code: x <- seq(1, 100, 1) y <- seq(1, 100, 1) reg_xy <- stats:::regularize.values(x, y, mean) # Regularized versions of `x` and `y` are identical to input but are stored at # different places identical(x, reg_xy[["x"]]) #> [1] TRUE .Internal(inspect(x)) #> @15719b0 14 REALSXP g0c7 [NAM(3)] (len=100, tl=0) 1,2,3,4,5,... .Internal(i...