search for: sel1

Displaying 17 results from an estimated 17 matches for "sel1".

Did you mean: sel
2006 Jan 11
3
dataframes with only one variable
Subsetting from a dataframe with only one variable returns a vector, not a dataframe. This seems somewhat inconsistent. Wouldn't it be better if subsetting would respect the structure completely? v1<-1:4 v2<-4:1 df1<-data.frame(v1) df2<-data.frame(v1,v2) sel1<-c(TRUE,TRUE,TRUE,TRUE) > df1[sel1,] [1] 1 2 3 4 > df2[sel1,] v1 v2 1 1 4 2 2 3 3 3 2 4 4 1 -- Erich Neuwirth Institute for Scientific Computing and Didactic Center for Computer Science University of Vienna phone: +43-1-4277-39464 fax: +43-1-4277-39459
2006 Jun 28
2
superimposing histograms con't
...lation (they will not overlap much, but this is a detail) - the bars from each histogram having different shadings or other visually distinguishing features. Gabor Grothendieck [ggrothendieck@gmail.com] pointed to some code to to this but I have found another way that works even easier. hist(x[sel1],xlim=c(a,b),ylim=c(A,B)) - this plots the histogram for the first group (indexed by sel1) but with an x axis and a y axis that spans the entire range. par(new=T) - to keep on the same graph hist(x[sel2],main=Null,xlab=NULL,ylab=NULL,axes=F) -superimposes the second histogram par(new=T) -...
2004 Dec 01
1
SPA-3000 and distinctive ring
...hing inside the box. I'm reading the book but without having one in-hand to play with it appears a little obtuse at this time. Before I drop down my money can someone with some hands-on with one of these confirm if the SPA-3000 can: a) detect inbound distinctive ring (this looks to me like cfw sel1 caller command from the pdf guide) and if so... b) direct individual distinctive rings to a different Asterisk exten (looks like cfw sel1 dest command to me). ... and if so, does this work reliably enough to be a viable production solution? I presume this means that I can have it ignore other pat...
2011 Jan 11
1
how to sort new data frame based on the original data frame
...e to be filled with 2 random rows of the 8 rows of G numbers. the rest should be filled with 6 random rows of the 8 rows of W numbers. At the same time, the SubIDs of all eight rows should be different among each other. here below is the syntax I've used: > fff<-function(dat,g=2,w=6){ + sel1<-sample(1:8,g) + sel2<-sample((1:8)[-sel1],w) + M=dat[sel1,2:5] + N=dat[sel2,6:9] + colnames(N)<-colnames(M) + rbind(M,N) +} > result<-vector("list",100) > for(i in 1:100)result[[i]]<-fff(data,2,6) > result here is the first random sample: > result[[1]]...
2008 Mar 20
0
[RFC/PATCH 04/15] preparation: split sysinfo defintions for kvm use
...char reserved_0[4]; - unsigned short cpus_total; - unsigned short cpus_configured; - unsigned short cpus_standby; - unsigned short cpus_reserved; - char name[8]; - unsigned int caf; - char cpi[16]; - char reserved_1[24]; - - } vm[8]; -}; - -static inline int stsi(void *sysinfo, int fc, int sel1, int sel2) -{ - register int r0 asm("0") = (fc << 28) | sel1; - register int r1 asm("1") = sel2; - - asm volatile( - " stsi 0(%2)\n" - "0: jz 2f\n" - "1: lhi %0,%3\n" - "2:\n" - EX_TABLE(0b,1b) - : "+d" (r0) : &q...
2008 Mar 20
0
[RFC/PATCH 04/15] preparation: split sysinfo defintions for kvm use
...char reserved_0[4]; - unsigned short cpus_total; - unsigned short cpus_configured; - unsigned short cpus_standby; - unsigned short cpus_reserved; - char name[8]; - unsigned int caf; - char cpi[16]; - char reserved_1[24]; - - } vm[8]; -}; - -static inline int stsi(void *sysinfo, int fc, int sel1, int sel2) -{ - register int r0 asm("0") = (fc << 28) | sel1; - register int r1 asm("1") = sel2; - - asm volatile( - " stsi 0(%2)\n" - "0: jz 2f\n" - "1: lhi %0,%3\n" - "2:\n" - EX_TABLE(0b,1b) - : "+d" (r0) : &q...
2016 Sep 28
4
IR canonicalization: select or bool math?
...32 @sel_0_or_2(i1 %a) { %sel = select i1 %a, i32 2, i32 0 ret i32 %sel2 } b. define i32 @sel_0_or_2(i1 %a) { %zexta = zext i1 %a to i32 %add = add i32 %zexta, %zexta ret i32 %add } 8. Choose {0,1,2} based on 2 bools? a. define i32 @sel_sel(i1 %a, i1 %b) { %zexta = zext i1 %a to i32 %sel1 = select i1 %a, i32 2, i32 1 %sel2 = select i1 %b, i32 %sel1, %zexta ret i32 %sel2 } b. define i32 @sel_sel(i1 %a, i1 %b) { %zexta = zext i1 %a to i32 %zextb = zext i1 %b to i32 %add = add i32 %zexta, %zextb ret i32 %add } Links for reference: https://llvm.org/bugs/show_bug.cgi?id=302...
2008 Mar 20
0
[RFC/PATCH 08/15] kvm-s390: intercepts for privileged instructions
...;vm[0].name, "KVMguest", 8); + ASCEBC(mem->vm[0].name, 8); + memcpy(mem->vm[0].cpi, "KVM/Linux ", 16); + ASCEBC(mem->vm[0].cpi, 16); +} + +static int handle_stsi(struct kvm_vcpu *vcpu) +{ + int fc = (vcpu->arch.guest_gprs[0] & 0xf0000000) >> 28; + int sel1 = vcpu->arch.guest_gprs[0] & 0xff; + int sel2 = vcpu->arch.guest_gprs[1] & 0xffff; + int base2 = vcpu->arch.sie_block->ipb >> 28; + int disp2 = ((vcpu->arch.sie_block->ipb & 0x0fff0000) >> 16); + u64 operand2; + unsigned long mem; + + vcpu->stat.instruct...
2010 Nov 15
5
Sampling problem
Hey, I am hoping someone can help me with a sampling question. I have a data frame of 8 variables (the first column is the subjects' id): SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4 1 6 5 6 2 6 2 2 4 2 6 4 7 2 6 6 2 3 3 5 5 5 5 5 5
2006 Jun 28
0
superimposing histograms con't [Broadcast]
...ion (they will not overlap much, but this is a detail) - the bars from each histogram having different shadings or other visually distinguishing features. Gabor Grothendieck [ggrothendieck at gmail.com] pointed to some code to to this but I have found another way that works even easier. hist(x[sel1],xlim=c(a,b),ylim=c(A,B)) - this plots the histogram for the first group (indexed by sel1) but with an x axis and a y axis that spans the entire range. par(new=T) - to keep on the same graph hist(x[sel2],main=Null,xlab=NULL,ylab=NULL,axes=F) -superimposes the second histogram par(new=T) -...
2010 Jun 18
4
[Dovecot 1.2.11(NFS used) & dovecot-antispam 1.2]: move message error
Hello! I am really need help! I am using dovecot installation on ~700 users with dspam integration via dovecot-antispam plugin. Problem in unpredictable result of moving spam-mails from INBOX to Junk and from Junk to INBOX. In some cases it works fine, but sometimes I see error like "It's not possible to move the message" in client (roundcube). Two different samples on same
2005 Mar 29
7
Sipura 3000 FXO with Asterisk
Anybody using a Sipura 3000 for FXO with Asterisk? Mine is working except for one small nit... When a call comes in from the PSTN, the Sipura answers it and then passes it on to Asterisk, which plays extension ring tone. I'd prefer for the POTS line to stay on-hook while the extension rings, and to only be answered by the Sipura when the extension answers. Has anybody made this work?
2007 Jul 02
3
list box poupulation using php,mysql and ptototype
I have some problems with php and Prototype.I am trying to implement listbox population (second dropdown box values depend on first dropdown) using php,Mysql and Prototype.But i have no idea how to implement . I hope you all have sucessfully done this, please show me an example --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2008 Mar 20
34
[RFC/PATCH 00/15] kvm on big iron
This patch series introduces a backend for kvm to run on IBM System z machines that uses the mainframe's sie virtualization capability. This work runs 64bit guests on z800/z890/z900/z990/z9/z10 class machines with a 64bit linux host. Userspace will follow once we're done brushing it over. The patch queue consists of the following patches, which can be applied in sequence on top of kvm.git
2008 Mar 20
34
[RFC/PATCH 00/15] kvm on big iron
This patch series introduces a backend for kvm to run on IBM System z machines that uses the mainframe's sie virtualization capability. This work runs 64bit guests on z800/z890/z900/z990/z9/z10 class machines with a 64bit linux host. Userspace will follow once we're done brushing it over. The patch queue consists of the following patches, which can be applied in sequence on top of kvm.git
2015 Jun 07
21
[PATCH RFC 00/20] expose global performance counters
Hello, This series exposes global performance counters (PCOUNTER) to the userspace through the nvif interface by reworking most of the code related to the PM engine. This interface will allow the userspace to control and monitor complex hardware events like the proprietary driver already does, for example with CUPTI and PerfKit. For now, this series only exposes performance counters on NV50,
2005 Jan 01
25
Qs about FXO/FXS cards
Hello. I am going to be putting together my first * system using FXO/FXS interfaces. All the systems I have set up thus far have been pure VoIP setups. The system I need to set up should have 3 FXO interfaces and 1 FXS interface, as well as several SIP phones. I have noticed people complaining about Digium's TDM cards - are these isolated incidents or are these cards unreliable? I intend to