search for: new_y

Displaying 12 results from an estimated 12 matches for "new_y".

Did you mean: new_p
2006 Jul 31
1
questions regarding spline functions
...e bs() function: #natual, B-Splines library(splines) #fit a b-spline model: fm <- lm(y ~ bs(x, df=5) ) I am able to predict a soil property with depth, at unsampled locations with this model with: new_x <- seq(range(x)[1], range(x)[2], len = 200) #predict attribute at unsampled depths: new_y <- predict(fm, data.frame(x=new_x) ) #plot the predicted attribute at the unsampled depths lines(new_x, new_y, col='red') This tends to work fairly well (see attached), but I am wondering if I can use the 'knots' parameter in the bs() function for incorporation of horizon bou...
2018 Jan 17
3
always allow canonicalizing to 8- and 16-bit ops?
...i1 %cmpyz, i32 %zy, i32 %zz %cmpyx = icmp ult i8 %y, %x %minxyz = select i1 %cmpyx, i32 %minxz, i32 %minyz %tr_minxyz = trunc i32 %minxyz to i8 %new_zx = sub nsw i32 %zx, %minxyz %new_zy = sub nsw i32 %zy, %minxyz %new_zz = sub nsw i32 %zz, %minxyz %new_x = trunc i32 %new_zx to i8 %new_y = trunc i32 %new_zy to i8 %new_z = trunc i32 %new_zz to i8 call void @use4(i8 %tr_minxyz, i8 %new_x, i8 %new_y, i8 %new_z) ret void } ...but x86 gets to shrink the subs which leads to a bunch of other transforms, and we grind this down to 10 instructions between instcombine and early-cse:...
2013 Jun 19
2
Relative position between two windows
...play, RootWindow ( display, 0 ), SubstructureNotifyMask ); > > XEvent event; > while ( true ) > { > XNextEvent ( display, & event ); > /* ... */ > if ( event.type == ConfigureNotify and event.xconfigure.window == > window_B ) > { > // new_x, new_y based on event.xconfigure.x, event.xconfigure.y, > etc... > XMoveWindow ( display, window_A, new_x, new_y ); > } > /* ... */ > } > The problem is that the move correction of a window is only applied at the end of the move/resize operation of the other and not cont...
2018 Jan 22
2
always allow canonicalizing to 8- and 16-bit ops?
...icmp ult i8 %y, %x > %minxyz = select i1 %cmpyx, i32 %minxz, i32 %minyz > %tr_minxyz = trunc i32 %minxyz to i8 > > %new_zx = sub nsw i32 %zx, %minxyz > %new_zy = sub nsw i32 %zy, %minxyz > %new_zz = sub nsw i32 %zz, %minxyz > %new_x = trunc i32 %new_zx to i8 > %new_y = trunc i32 %new_zy to i8 > %new_z = trunc i32 %new_zz to i8 > > call void @use4(i8 %tr_minxyz, i8 %new_x, i8 %new_y, i8 %new_z) > ret void > } > > ...but x86 gets to shrink the subs which leads to a bunch of other > transforms, and we grind this down to 10 instruction...
2018 Jan 22
0
always allow canonicalizing to 8- and 16-bit ops?
...i1 %cmpyz, i32 %zy, i32 %zz %cmpyx = icmp ult i8 %y, %x %minxyz = select i1 %cmpyx, i32 %minxz, i32 %minyz %tr_minxyz = trunc i32 %minxyz to i8 %new_zx = sub nsw i32 %zx, %minxyz %new_zy = sub nsw i32 %zy, %minxyz %new_zz = sub nsw i32 %zz, %minxyz %new_x = trunc i32 %new_zx to i8 %new_y = trunc i32 %new_zy to i8 %new_z = trunc i32 %new_zz to i8 call void @use4(i8 %tr_minxyz, i8 %new_x, i8 %new_y, i8 %new_z) ret void } ...but x86 gets to shrink the subs which leads to a bunch of other transforms, and we grind this down to 10 instructions between instcombine and early-cse:...
2013 Jun 19
0
Relative position between two windows
...fyMask >> ); >> >> XEvent event; >> while ( true ) >> { >> XNextEvent ( display, & event ); >> /* ... */ >> if ( event.type == ConfigureNotify and event.xconfigure.window == >> window_B ) >> { >> // new_x, new_y based on event.xconfigure.x, event.xconfigure.y, >> etc... >> XMoveWindow ( display, window_A, new_x, new_y ); >> } >> /* ... */ >> } >> > > The problem is that the move correction of a window is only applied at the > end of the move/resi...
2010 May 17
1
Loess fit
...ting loess fit to a new data set is producing error. I was trying the following: dat = read.csv(choose.files()) x = dat[,2]; y = dat[,1] x.sort = sort(x) y.loess = loess(y~x, span=0.75) # For testing the above fit with a new dataset: test = read.csv(choose.files()) # test data new_x = test [,1]; new_y = test[,2] new_x.sort = sort(new_x) predicted <- predict(y.loess, newdata=new_x.sort) Am I doing any mistake ? Please correct me. I could see that though the rest of the values of "predicted" looks alright, however the first output of it is an NA !! Many thanks, Chintanu [[altern...
2017 Nov 16
3
Manera eficiente de añadir el valor anterior por grupo
Buenas Tengo un Data table de la siguiente manera: datos<-data.table(grupo=rep(c("a","b"),5),x=c(1:10),y=rnorm(10,2,1)) Lo que quiero es añadir una fila por cada grupo y en esa nueva fila, al valor de la x ponerle el valor anterior de la y Lo que hago es añadir una nueva fila por grupo, con: datos[,.SD[1:(.N+1)],by=grupo] Y para añadir el valor anterior uso la función
2018 Jan 23
0
MachineVerifier and undef
...icmp ult i8 %y, %x > %minxyz = select i1 %cmpyx, i32 %minxz, i32 %minyz > %tr_minxyz = trunc i32 %minxyz to i8 > > %new_zx = sub nsw i32 %zx, %minxyz > %new_zy = sub nsw i32 %zy, %minxyz > %new_zz = sub nsw i32 %zz, %minxyz > %new_x = trunc i32 %new_zx to i8 > %new_y = trunc i32 %new_zy to i8 > %new_z = trunc i32 %new_zz to i8 > > call void @use4(i8 %tr_minxyz, i8 %new_x, i8 %new_y, i8 %new_z) > ret void > } > > ...but x86 gets to shrink the subs which leads to a bunch of other > transforms, and we grind this down to 10 instruction...
2008 Jul 14
18
[git patches] Ocfs2 and Configfs updates for 2.6.27
I'm running a bit late with the e-mail this time around, but I think that's ok since there really isn't any major new features here - the bulk of the Ocfs2 update is bug fixes, or cleanups. The same goes for configfs. The only two things that could be described as features would be: - Sunil has updated Ocfs2 to provide even more live cluster locking information via debugfs. - Joel
2012 Jan 25
26
[PATCH v4 00/23] Xenstore stub domain
Changes from v3: - mini-os configuration files moved into stubdom/ - mini-os extra console support now a config option - Fewer #ifdefs - grant table setup uses hypercall bounce - Xenstore stub domain syslog support re-enabled Changes from v2: - configuration support added to mini-os build system - add mini-os support for conditionally compiling frontends, xenbus -
2008 Feb 29
35
[RFC] PVFB: Add refresh period to XenStore parameters?
Hello, Sometimes the backend of PVFB knows that it doesn''t need permanent refresh, when the window is minimized for instance (no refresh at all), or the administration tools know that the window is thumnailed, and so a slow refresh rate is fine. Also, some users may want to tune the refresh rate according to the smoothness they would like, balanced with the CPU time that requires.