search for: xv

Displaying 20 results from an estimated 397 matches for "xv".

Did you mean: xvd
2003 Aug 11
0
Designing and incorporating a digital filter
...source code. It is:- /* Digital filter designed by mkfilter/mkshape/gencode A.J. Fisher Command line: /www/usr/fisher/helpers/mkfilter -Bu -Bp -o 5 -a 1.0000000000e-02 1.0000000000e-01 -Z 2.0000000000e-01 -l */ #define NZEROS 12 #define NPOLES 12 #define GAIN 1.548068051e+03 static float xv[NZEROS+1], yv[NPOLES+1]; static void filterloop() { for (;;) { xv[0] = xv[1]; xv[1] = xv[2]; xv[2] = xv[3]; xv[3] = xv[4]; xv[4] = xv[5]; xv[5] = xv[6]; xv[6] = xv[7]; xv[7] = xv[8]; xv[8] = xv[9]; xv[9] = xv[10]; xv[10] = xv[11]; xv[11] = xv[12]; xv[12] = `next input value' /...
2008 Sep 30
1
Using sub to get captions in barplots
..., see below), the captions are split on more than 1 line. Is there a way to get the caption on a single line? Cheers, David y.bar.new = c(30, 15) se.ybar.new = c(2,3) error.bars(y.bar.new, se.ybar.new, c("Control (n=18)", "CKD (n=18)")) error.bars<-function(yv,z,nn){ xv<-barplot(yv,ylim=c(0,(max(yv)+max(z))),names=nn,ylab="Total five hour potassium excretion (mmol)", sub= "Figure 1B: Hour 1-5 potassium excretion") g=(max(xv)-min(xv))/50 for (i in 1:length(xv)) { lines(c(xv[i],xv[i]),c(yv[i]+z[i],yv[i]-z[i])) lines(c(xv[i]-g,xv[i]+g),c(yv[i]+...
2008 Sep 06
2
Hopefully an easy error bar question
...it into two levels so i have males and females, so my graph basically has four bars on it. I know how to add eror bars for instance when there is only one level eg lookng at the diffrence between male and female lizards and tree height and have used the code: error.bars<-function(yv,z,nn) { xv<- barplot(yv,ylim=c(0,(max(yv)+max(z))),names=nn,ylab=deparse(substitute(yv) )) g=(max(xv)-min(xv))/50 for (i in 1:length(xv)) { lines(c(xv[i],xv[i]),c(yv[i]+z[i],yv[i]-z[i])) lines(c(xv[i]-g,xv[i]+g),c(yv[i]+z[i], yv[i]+z[i])) lines(c(xv[i]-g,xv[i]+g),c(yv[i]-z[i], yv[i]-z[i])) }} Have then w...
2018 Jan 30
2
Calculating angle of a polyline
Assuming your polyline is defined by two vectors, one for the x coordinates, one for the y coordinates, you can try the following library(NISTunits) polyangles <- function(xV,yV) { stopifnot( (length(xV)==length(yV)) && (length(xV) >= 3)) v <- function(i) { c( xV[i]-xV[i-1], yV[i]-yV[i-1])} vlen <- function(v) { sqrt(sum(v*v)) } lV <- rep(NA_real_,length(xV)) for ( i in 2:(length(xV)-1) ) lV[i] <- acos( sum(v(i)*v(i+1))/(vlen(v(i))*...
2011 Feb 15
1
Passing Arguments in a function
...33530 0.04 20 20 308.1200 47230 33680 0.04 If i use: library(nlrwr) # Build a model. decay.model <- nls(lift ~ SSexp(total.reach, y0, b), data = decay.data) # plot the model plot(decay.data[["total.reach"]], decay.data[["lift"]]) xv <- seq(min(decay.data[["lift"]]), max(decay.data[["total.reach"]]), 0.02) yv <- predict(decay.model, newdata = list(total.reach = xv)) lines(xv,yv) This works. If i try and wrap this in a function and pass the argument values i fail when i reach the "list(total.reac...
2018 Jan 30
0
Calculating angle of a polyline
I like to use complex numbers for 2-dimensional geometry. E.g., > polyAngles2 function (xV, yV) { stopifnot((length(xV) == length(yV)) && (length(xV) >= 3)) z <- complex(re = xV, im = yV) c(NA, diff(Arg(diff(z))), NA) # radians, positive is counter-clockwise } > x <- c(0:3) > y <- c(0,0,1,1) > polyAngles2(x,y) / pi * 180 [1] NA 45 -45 NA Bil...
2009 Mar 09
4
[PATCH] ocfs2: Use xs->bucket to set xattr value outside.
...s2/xattr.c index f1b9af1..503a1d7 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -4795,19 +4795,34 @@ static int ocfs2_xattr_bucket_set_value_outside(struct inode *inode, char *val, int value_len) { - int offset; + int ret, offset, block_off; struct ocfs2_xattr_value_root *xv; struct ocfs2_xattr_entry *xe = xs->here; + struct ocfs2_xattr_bucket *bucket = xs->bucket; + struct ocfs2_xattr_header *xh = bucket_xh(bucket); + void *base; BUG_ON(!xs->base || !xe || ocfs2_xattr_is_local(xe)); - offset = le16_to_cpu(xe->xe_name_offset) + - OCFS2_XATTR_SIZE(...
2018 Feb 04
0
[PATCH 2/2] nv50/xv: add support for depth 30 xv output
Ostensibly it should probably be looking at the pixmap format. However it's always the window pixmap, so we can assume it's what we expect. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- src/nouveau_xv.c | 11 +++++++++-- src/nv50_xv.c | 3 ++- src/nvc0_xv.c | 3 ++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c index 0b6c4d4..2f1979a 100644 --- a/src/nouveau_xv.c +++ b/src/nouveau_xv.c @@ -112,6 +112,13 @@ XF86VideoFormatRec NVFormats...
2011 Mar 20
4
predicting values from multiple regression
Hey List, I did a multiple regression and my final model looks as follows: model9<-lm(calP ~ nsP + I(st^2) + distPr + I(distPr^2)) Now I tried to predict the values for calP from this model using the following function: xv<-seq(0,89,by=1) yv<-predict(model9,list(distPr=xv,st=xv,nsP=xv)) The predicted values are however strange. Now I do not know weather just the model does not fit the data (actually all coefficiets are significant and the plot(model) shows a good shape) or wether I did something wrong with my...
2009 Mar 11
4
error.bars
Hi, I'm trying to use the function "error.bars", but the program don't find it, and I dont't found any package with this function. Is there some another functin to draw barplots with error bars? Sueli Rodrigues Eng. Agr?noma - UNESP Mestranda - USP/ESALQ PPG-Solos e Nutri??o de Plantas Fones (19)93442981 (19)33719762
2011 May 26
2
Plot binomial regression line
Dear all, I am quite new with R and I have a problem with plotting a binomial regression line in a plot. This is what I type in: > model<-glm(Para~Size,binomial) > par(mfrow=c(1,1)) > xv<-seq(3.2,4.5,0.01) > yv<-predict(model,list(area=xv),type="response") > plot(Size,Para) > lines(xv,yv) The error message that I get is: > Error in xy.coords(x, y) : 'x' and 'y' lengths differ My txt-file is attached. Could someone please help me to fin...
2008 Aug 30
1
[Bug 17371] New: Xv on NV18: HD video flickers with Adaptor #0, going back and forth
http://bugs.freedesktop.org/show_bug.cgi?id=17371 Summary: Xv on NV18: HD video flickers with Adaptor #0, going back and forth Product: xorg Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Com...
2011 Apr 26
2
matrix
Hi all, Assume I have a matrix xv= [1 0 0 0 0 12, 0 1 0 0 0 10, * 0 0 1 0 0 -9,* 0 0 0 1 0 20, * 0 0 0 0 1 -5]* if the last column of "xv" less than 0 then I want to set zero the entire row. The desired output looks like the following. In this case row 3 and row 5 are set zero. [ 1 0 0 0 0 1...
2011 Oct 04
1
Rug plot curve reversal
Dear R-help Can anyone tell me why my curve appears the wrong way round on a rug plot? I am using the same code as on pg 596 of the Crawley R-book. mod<-glm(mort~logBd,binomial) par(mfrow=c(2,2)) xv<-seq(0,8,0.01) yv<-predict(mod,list(logBd=xv),type="response") plot(logBd,mort) lines(xv,yv) I've tried swapping xv and yv around but no luck. Thanks, Pete [[alternative HTML version deleted]]
2007 May 20
1
centos 5 with mplayer and xv driver
Hi all I am trying to get mplayer working on centos 5. On centos 4.X I just did a ./configure and make and make install for mplayer.... Can use prepaged mplayer for other reasons. anyway, when I play a video I cannot get it to use the xv driver (acceleated video). What package might I be missing or not installed to get the xv driver ??? I am using the binary nvidia drivers (latest version). Thanks so much... Jerry
2006 Jun 08
5
more cubes and 3d metaphoric objects...
hi how about having more cubes to fly around in 3d space. though at first thought this might appear unessacary as who needs so many desktops? So i thought, why not have special cubes (as well as the original cube of course) and these special cubes, instead of cubes, be 3d metaphric objects for specific tasks such as a radio, or ipod or whatever for music a cinema for movies arcade thingo for
2008 Aug 02
7
[Bug 16961] New: 3298249d8267c27235653f17379f8c breaks Xv overlay ( display corruption)
http://bugs.freedesktop.org/show_bug.cgi?id=16961 Summary: 3298249d8267c27235653f17379f8c breaks Xv overlay (display corruption) Product: xorg Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedT...
2012 Jun 29
35
[Bug 51579] New: Xv video support is black on NVidia NVa8 Chipset in latest git
https://bugs.freedesktop.org/show_bug.cgi?id=51579 Bug #: 51579 Summary: Xv video support is black on NVidia NVa8 Chipset in latest git Classification: Unclassified Product: xorg Version: git Platform: x86-64 (AMD64) OS/Version: All Status: NEW Severity: critical Priority: mediu...
2012 Jun 20
1
Problem with predict?
...s the basic idea of what I'm doing: head(mort) Time Density 0 2233333333 0 2100000000 0 1933333333 5 1900000000 5 1433333333 5 900000000 plot(Density~Time) This plots something that looks a lot like a decay rate mod<-lm(log(Density)~Time) xv<-seq(0,60,0.1) yv<-exp(predict(mod,list(time=xv))) lines(xv,yv) Everything seems to work fine until I try to plot the lines, but then I get the error message: Error in xy.coords(x, y) : 'x' and 'y' lengths differ Checking the lengths of x and y confirms that somehow the obj...
2007 May 20
1
centos 5 with mplayer and xv driver - solved
>Hi all >I am trying to get mplayer working on centos 5. >On centos 4.X I just did a ./configure and make and make install for >mplayer.... Can use prepaged mplayer for other reasons. >anyway, when I play a video I cannot get it to use the xv driver >(acceleated video). >What package might I be missing or not installed to get the xv driver ??? >I am using the binary nvidia drivers (latest version). >Thanks so much... >Jerry Not sure why the extmod was not being loaded on centos 5. however after explicitly loading it...