Displaying 2 results from an estimated 2 matches for "dz2".
Did you mean:
d2
2012 May 25
3
Breaking up a vector
...but it would be incorrect to difference it
all in x, it has to be broken up first. I've tried the following:
r <- c(1:294)*0
rv <- c(1:294)*0
#RUN A LOOP WHERE YOU INPUT THE lx[(i-1)*7:i*7] INTO Z
for (i in 1:294){
#CREATE A NEW VECTOR OF LENGTH 7
z <- NULL
length(z)=7
dz <- NULL
dz2 <- NULL
#STORE THE VALUES IN z
z <- lx[1+(i-1)*7:(i)*7]
#THEN DIFFERENCE THOSE
#THIS IS r_t,i,m
dz=diff(z)
#SUM THIS UP AND STORE IT IN r, THIS IS r_t
r[i] <- sum(dz)
#SUM UP THE SQUARES AND STORE IT IN rv, THIS IS RV_t
dz2 <- dz^2
rv[i] <- sum(dz2)
#END THE LOOP
}
However, the...
2005 Oct 20
0
[PATCH][VT] disable bogus touchpad device model, which cause annoying dmesg on 2.6 kernel
...y;
int mouse_dz;
uint8_t mouse_buttons;
+#ifdef SYNAPTIC
TouchPad touchpad;
+#endif
} KBDState;
KBDState kbd_state;
@@ -399,6 +406,7 @@
dx1 = s->mouse_dx;
dy1 = s->mouse_dy;
dz1 = s->mouse_dz;
+#ifdef SYNAPTIC
if (s->touchpad.absolute)
{
int dz2, dleftnright, dg, df;
@@ -444,6 +452,7 @@
kbd_queue(s, dy1 & 0xFF, 1);
return;
}
+#endif
/* XXX: increase range to 8 bits ? */
if (dx1 > 127)
dx1 = 127;
@@ -516,9 +525,11 @@
static void kbd_write_mouse(KBDState *s, int val)
{
+#ifdef SYNAPTIC
/* variables nee...