search for: pos

Displaying 20 results from an estimated 2779 matches for "pos".

Did you mean: os
2012 Mar 14
5
mouse glitch in fullscreen game (borderlands)
...ections, sometimes getting sort of stuck straight up or down. Here is some debugging information from running with MouseWarpOverride=enabled and "automatically capture" on, with WINEDEBUG=+cursor. Toward the bottom, you can see where I'm actually in the game, and the X11DRV_GetCursorPos traces are reporting extremely discontinuous values. I had hoped to get relative motion support by using xinput2, but these values don't seem like that's what they are. There's more than enough noise on the internet about this feature that it's very possible I just haven't set...
2007 May 02
2
I need help
hello, I need help because I don't understand the syntaxe "else" how can I write it for example I writed a script to cut missings values and I have errors > if(na==length(C)){ + pos=match(0,match(donGeno[[na-1]],donGeno[[na]],nomatch=0)) + for(k in 1:(na-1)) { + if(pos==1) {donGeno[[k]] <- donGeno[[k]][2:C[k]]} + if(pos==C[k]){donGeno[[k]] <- donGeno[[k]][1:(C[k]-1)]} + else{donGeno[[k]] <- c(don...
2005 Jun 22
2
A polar.plot BUG in plotrix 1.3.3 ?
Hi, I just updated to R-2.1.1 and updated packages acordingly However, after the update, routines that use polar.plot did not function as correctly. In plotrix 1.3.3 the polar.plot function does scale label.pos to radians prior to calling radial.plot Hence, the command polar.plot(c(5,10,5,0),c(-10,0,10,20),rp.type='P', labels=c("A","N","V","S"),label.pos=c(0,90,180,270)) produces absurd compass lines but the correct results are obtained if label.pos...
2003 Aug 15
0
Re: [R} stars graphs
...-xrange[1])*mfac) } else { cat("Usage: rescale(x,newrange)\n") cat("\twhere x is a numeric object and newrange is the extent of the new range\n") } } # plots data as radial lines on a 24 hour "clockface" going clockwise clock24.star<-function(lengths,radial.pos,radial.range) { if(missing(radial.range)) radial.range<-range(radial.pos) npos<-length(radial.pos) newrange<-c(2.5*pi,0.5*pi) # rescale to a range of 0 to 2pi # starting at "12 o'clock" and going clockwise clock.radial.pos<-rescale(c(radial.pos,radial.range),newrange...
2024 Mar 22
1
geom_edge & color
..."F" F 1 Test_adjac.csv A.A B.B C.C D.D E.E F.F A.A 0 0 5 5 5 5 B.B 4 0 1 1 1 1 C.C 5 5 0 5 4 2 D.D 5 0 5 0 5 3 E.E 5 1 5 5 0 4 F.F 1 2 3 4 5 5 Edges_table-Test.csv Names target weight relationship B.B A.A 4 pos C.C A.A 5 pos D.D A.A 5 neg E.E A.A 5 pos F.F A.A 1 pos C.C B.B 5 pos E.E B.B 1 pos F.F B.B 2 neg A.A C.C 5 pos B.B C.C 1 pos D.D C.C 5 pos E.E C.C 5 pos F.F C.C 3 pos A.A D.D 5 neg B.B D.D 1 pos C.C D.D 5 pos E.E D.D 5...
2012 Mar 08
8
Copy dataframe for another
I'm trying to copy the results of a dataframe to another within a cycle for but I am not able to implement the rbind, because give th d<-Null df<-NULL for(r in 2: nrow(x)) { val_user<-x.name[[r]] pos<-x.pos[[r]] -4 age <-x.age[[r]] d<-data.frame(val_user,pos,) print(d) } df<-rbind(df,d) } someone can help me solve this Thanks -- View this message in context: http://r.789695.n4.nabble.com/Copy-dataframe-for-another-tp4456879p4456879.html Sent from the R...
2024 Mar 22
1
geom_edge & color
...h=(E(network)$weight/10), color=c("darkblue", "red")[as.factor(edge_list$relationship)], alpha=0.5)) + # ... this works :-) geom_edge_arc(curvature=0.3, aes(width=E(network)$weight/10, color=edge_list$relationship), alpha=.5) + scale_edge_color_manual(values=c("pos"="darkblue", "neg"="red")) + # This does not work either... # geom_node_point(aes(size = V(network)$hub_score*200, color= as.factor(V(network)$community))) + # ... so try this :) geom_node_point(aes(size = V(network)$hub_score*200, color=V(net...
2009 Jan 21
3
merging several dataframes from a list
...es (generated by reading multiple files) and all dataframes are comparable in dimension and column names. They also have a common column, which, I'd like to use for merging. To give a simple example of what I have: df1 <- data.frame(c(LETTERS[1:5]), c(2,6,3,1,9)) names(df1) <- c("pos", "data") df3 <- df2 <- df1 df2$data <- c(6,2,9,7,5) df3$data <- c(9,3,6,2,1) mylist <- list(df1,df2,df3) names(mylist) <- c("df1","df2","df3") > mylist $df1 pos data 1 A 2 2 B 6 3 C 3 4 D 1 5 E 9 $df2...
2024 Mar 21
1
geom_edge & color
...: > --> geom_node_point(aes(size = V(network)$hub_score*200, color= > as.factor(V(network)$community))) > I additionally want to consider different colors for different edge > groups > The grouping is defined in the edge_list$relationship: negative > relationship > = red and positive relationship = darkblue. The code is working in the > way > that the? groups are separated by two colors. However, the code uses not > the > assigned colors. Does anyone have any idea how to adapt the code? > --> geom_edge_arc(curvature=0.3, aes(width=(E(network)$weight/10),...
2004 Sep 10
2
better seeking
...FLAC/seekable_stream_decoder.c 2003-07-09 23:49:35.000000000 +0200 @@ -816,11 +816,11 @@ FLAC__bool seek_to_absolute_sample_(FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample) { - FLAC__uint64 first_frame_offset, lower_bound, upper_bound; - FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + FLAC__uint64 first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample; + FLAC__int64 pos, last_pos = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = 0xfffffff...
2006 Oct 28
3
better seeking
...FLAC__uint64 target_sample) { - FLAC__uint64 first_frame_offset = decoder->private_->first_frame_offset, lower_bound, upper_bound; + FLAC__uint64 first_frame_offset = decoder->private_->first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample; FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff); + FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff), this_frame_sample; FLAC__bool needs_seek;...
2006 May 15
3
FXTextField - posSelected?(pos)
Hi, I wonder if am facing a bug or something else On a FXtextField, I want to detect the low and high pos of the selected string example: the text is: 0123456789 The selected string is : 234567 first = last = -1 atext.text.length.times do |pos| first = pos if atext.posSelected?(pos) and first < 0 last = pos if atext.posSelected?(pos) end...
2002 Dec 20
0
RE workspace vs. image
...use of two R functions written by my colleague John Miyamoto. I have taken the liberty of attaching their definitions to this message. Their efficient use is based on adopting the following regimen or something like it: (1) at startup attach an .Rdata workspace containing the two functions, say to position 2. This I do in my etc/Rprofile file. (2) then attach one or more .Rdata workspaces to additional positions in the search path. These contain data and/or user-defined functions relevant to the current problem. Position 1 of the search, .GlobalEnv is then used only for sctratchwork. move(obj,p...
2005 Jan 25
0
bitbuffer optimizations
...-0800, Josh Coalson wrote: > yes, a mere 2 years later it is checked in! > > speed improvement for me is roughly 17% testing flac files on > linux-i386. Thanks! In case you would like to check another old patch, I have attached updated patch for seekable stream decoder, originally posted on 09/07/2003. -- Miroslav Lichvar -------------- next part -------------- --- seekable_stream_decoder.c.orig 2005-01-25 05:18:31.000000000 +0100 +++ seekable_stream_decoder.c 2005-01-25 23:39:03.000000000 +0100 @@ -857,11 +857,11 @@ FLAC__bool seek_to_absolute_sample_(FLAC__SeekableStreamD...
2009 Jul 01
1
running count in data.frame
...t $lc starts off OK until it gets to a 0 and then resets back to 0 which I don't want. The $pc counter never seems to count. I also get a warning message I don't understand so clearly I'm doing something very wrong here: > F1 <- RunningCount(F1) Warning messages: 1: In MyFrame$pc[pos] <- cumsum(as.integer(pos)) : number of items to replace is not a multiple of replacement length 2: In MyFrame$lc[pos] <- cumsum(as.integer(pos)) : number of items to replace is not a multiple of replacement length > F1 x y p l pc lc 1 1 -4 0 -4 0 1 2 2 -3 0 -3 0 2 3 3...
2006 Jul 10
2
ArcView + Samba: Performance nightmare under Linux, ok under Solaris or HP-UX
...the application opens its control files and some data files. At some specific point the logfiles beginn to differ: with the Solaris samba server, the ArcView application reads the data files with 4k blocks in a sequential manner like this: [...] read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 0, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 4096, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 8192, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 12288, size = 4096, r...
2004 Oct 13
0
Problems with randomForest for regression
...Theil's U statistic. I do not present the definition of some variables because it is not important to understand my problem. I use sliding window trategy. library("randomForest") rf.theil <- vector() learner='randomForest' for (i in 1:6) { eval.sum <- 0 test.pos=test.pos.ini while (test.pos <= n) { naive.pred <- c(orig.data[test.pos-1,7]) model <- randomForest(Duracao ~ ., data=orig.data[1:(test.pos-1),], na.action=na.omit, ntree=5000, mtry=i) preds <- predict(model,orig.data[test.pos:min(n,test.pos+relearn.st...
2007 Nov 18
0
3 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_sound.c
...3b603..13fb588 100644 --- a/libswfdec/swfdec_audio_event.c +++ b/libswfdec/swfdec_audio_event.c @@ -50,32 +50,32 @@ swfdec_audio_event_iterate (SwfdecAudio *audio, guint remove) return 0; } -static double +static guint16 swfdec_audio_event_get_envelop_volume (SwfdecAudioEvent *event, guint pos, guint offset, guint channel) { double distance; - g_return_val_if_fail (SWFDEC_IS_AUDIO_EVENT (event), 1); - g_return_val_if_fail (pos <= event->n_envelopes, 1); - g_return_val_if_fail (channel == 0 || channel == 1, 1); + g_return_val_if_fail (SWFDEC_IS_AUDIO_EVENT (event), 32...
2006 Jul 10
1
ArcView + Samba: Performance nightmare under Linux, o k under Solaris or HP-UX
...the application opens its control files and some data files. At some specific point the logfiles beginn to differ: with the Solaris samba server, the ArcView application reads the data files with 4k blocks in a sequential manner like this: [...] read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 0, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 4096, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 8192, size = 4096, returned 4096 read_file (daten/covers/dhm_offset/o1000c/arc.adf): pos = 12288, size = 4096, r...
2012 Feb 20
3
Run function several times changing only one argument - without a loop
...(c(88,86,74,62,41),ncol=5) colnames(Ee1)<-c("Lehrer","Lehrerinnen","Klassenkollegen","Klassenkolleginnen","Geschwister") par(las=1) par(mar=c(5,13,4,2)) barplot(Ee1,horiz=T,col="grey85",border="NA",xlim=c(0,100),axes=F) axis(2,pos=10, tick=T, tcl=F, labels=F,col="white") axis(2,pos=20, tick=T, tcl=F, labels=F,col="white") axis(2,pos=30, tick=T, tcl=F, labels=F,col="white") axis(2,pos=40, tick=T, tcl=F, labels=F,col="white") axis(2,pos=50, tick=T, tcl=F, labels=F,col="white")...