search for: input1

Displaying 20 results from an estimated 241 matches for "input1".

Did you mean: inputs
2011 Apr 05
2
IFELSE function XXXX
Hello everyone, This IFELSE function call is not working properly. I do not receive an error message, but the actions are not executed conditional as I was hoping. Any assistance is appreciated. set.seed(12345) res1<-rbinom(10000,1,.1) rdata3<-transform(data.frame(res1),input1=rnorm(10000,50,10)) data3 #inducing correlation between res1 & input1 ifelse(data3$res1==1,data3$input1<-data3$input1+10,data3$input1<-data3$input1) data3 Thank you, Dan [[alternative HTML version deleted]]
2000 Sep 20
1
'fixing' list components
I have a list x (say) that will contain many inputs to and outputs a model. x$input1 <- assign.input1(parameter1, parameter2) is one way to assign input1, but it would be neater to be able to do assign.input1(x, parameter1, parameter2) Is this a good idea? If so, what is a good way to do it? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-h...
2007 Jun 05
2
.activate() behaviour
...------------------------- <html> <head> <title>blabla</title> <script type="text/javascript" src="prototype.js"></script> </head> <body> <form action="bllalba"> <table> <tr> <td>Input1</td> <td><input id="input1" type="text" name="bla1" /></td> <td>Input2</td> <td><input id="input2" class="focusable" type="text" name="bla2" /></ td> </tr&g...
2010 May 29
3
[LLVMdev] Vectorized LLVM IR
...e URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100529/b44926fc/attachment.png> -------------- next part -------------- For scalar code in C++ code is : virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) { FAUSTFLOAT* input0 = input[0]; FAUSTFLOAT* input1 = input[1]; FAUSTFLOAT* input2 = input[2]; FAUSTFLOAT* input3 = input[3]; FAUSTFLOAT* output0 = output[0]; for (int i=0; i<count; i++) { output0[i] = (FAUSTFLOAT)(((float)input2[i] + (float)input3[i]) * ((float)input0[i] + (float)input1[i])); } } The "vectorized" C++ cod...
2006 Oct 06
1
transactions not work for array?
Hi, I have a transaction block as follow: begin Hello.transaction(input1,input2) input1.save for i in 0 to count input2[i].input1_id = input1.id input2[i].save end end rescue end I have used validates_uniqueness_of for input2 in the model The problem is, when there is duplicate record in input2, input1 and the fi...
2010 May 29
0
[LLVMdev] Vectorized LLVM IR
..."*" operation on the streams to produce a single output) > > > > > > For scalar code in C++ code is : > > virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) { >                FAUSTFLOAT* input0 = input[0]; >                FAUSTFLOAT* input1 = input[1]; >                FAUSTFLOAT* input2 = input[2]; >                FAUSTFLOAT* input3 = input[3]; >                FAUSTFLOAT* output0 = output[0]; >                for (int i=0; i<count; i++) { >                        output0[i] = (FAUSTFLOAT)(((float)input2[i] + (floa...
2005 Mar 05
1
vector memory allocation?
Hi all, I have a vector size allocation problem with R 2.0.1 (script and output shown): > var1 <- sum (input1 * input2, na = TRUE) > gc() used (Mb) gc trigger (Mb) Ncells 199327 5.4 785113 21.0 Vcells 71039552 542.0 206003790 1571.7 > var2 <- sum (input1 * input2 / input2, na = TRUE) Error: cannot allocate vector of size 524288 Kb input1 and input2 are matrices inpu...
2011 Apr 28
1
Subscript out of Bounds
I currently have this code: for(j in 2:n){ for(i in 1:(j-1)){ # Make sure the inputs are for the matrix "m" input1=rownames(m)[i] input2=colnames(m)[j] q=t[(t$Rec1==input1 & t$Rec2==input2),output] if(length(q)==0){ q=t[(t$Rec1==input2 & t$Rec2==input1),output] } m[i,j]=mean(q) m[j,i]=mean(q) m[j,j]=mean(q) }} I already created a 20x20 matrix "m" and have...
2008 Oct 16
0
How to invoke an external C program and output an integer to the program?
...freepbx): [root at Fire-Station parallel]# ls -l fire* -rwxrwxrwx 1 asterisk asterisk 5882 Oct 16 09:18 fire -rw-rw-rw- 1 asterisk asterisk 2793 Oct 15 22:25 fire.c If I run the program separately everything is fine: [root at Fire-Station parallel]# /usr/local/src/parallel/fire 1 buffer is 1 input1 value is 1 open port successfully Input1 is high, Pin 17 set to high Input1 is 1 [root at Fire-Station parallel]# /usr/local/src/parallel/fire 0 buffer is 0 input1 value is 0 open port successfully Input1 is low, Pin 17 set to low Input1 is 0 [root at Fire-Station parallel]# However if I call to 8...
2009 Jan 14
1
Adressing list-elements
...adings[25:30] loadings_pca6<--summary(pca)$loadings[31:36] loadmatrix<-as.matrix(cbind(loadings_pca1,loadings_pca2,loadings_pca3,loadings_pca4,loadings_pca5,loadings_pca6),princomp,dim(analyse)[2]) eigen<-summary(pca)$sdev #Monte-Carlo-Simulation trials<-1 Step<-1/365 princomp<-3 input1<-matrix(0,365,dim(analyse)[2]) Simulation<-list(input1) shocklist<-list(input1) Initialwerte<-analyse[dim(analyse)[1],] days<-365 shockmatrix<-matrix(0,365,princomp) for(i in 1:trials){ if(i==1) now<-Sys.time() FP<-matrix(0,365,dim(analyse)[2]) for(k in 1:days){ shocks&...
2010 May 29
1
[LLVMdev] Vectorized LLVM IR
...to produce a single output) >> >> >> >> >> >> For scalar code in C++ code is : >> >> virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) { >>                FAUSTFLOAT* input0 = input[0]; >>                FAUSTFLOAT* input1 = input[1]; >>                FAUSTFLOAT* input2 = input[2]; >>                FAUSTFLOAT* input3 = input[3]; >>                FAUSTFLOAT* output0 = output[0]; >>                for (int i=0; i<count; i++) { >>                        output0[i] = (FAUSTFLOAT)(((flo...
2011 May 26
1
matrix not working
...mn d - some values from column d are NA - column d was created with the code: df$d=rank(df$c, na.last="keep") #----------R Code---------# item=unique(df$a) n=length(list) r=matrix(data=NA,nrow=n, ncol=n, dimnames=list(PRR1=item, PRR2=item)) for(j in 2:ln) { for(i in 1:(j-1)) { input1=rownames(r)[i] input2=colnames(r)[j] q=df[(df$a==input1 & df$b==input2), "d"] if(length(q)==0) { q=df[(df$a==input2 & df$b==input1), "d"] } if(length(q)==0) { q=NA } r[j,i]=q r[i,j]=q r[j,j]=q } } The result...
2010 May 28
0
[LLVMdev] Vectorized LLVM IR
Hi Stéphane, The SSE support is the LLVM backend is fine. What is the code that's generated? Do you have some short examples of where LLVM doesn't do as well as the equivalent scalar code? -bw On May 28, 2010, at 12:13 PM, Stéphane Letz wrote: > Hi, > > We are experimenting directly generating vectorized LLVM IR (using <8 x float> kind of types), then compiling the code
2010 Feb 10
4
Readjusting the OUTPUT csv file
Dear R helpers   I have some variables say ABC, DEF, PQR, LMN and XYZ. I am choosing any three varaibles at random at a time for my analysis and name these files as input1.csv, input2.csv and input3.csv. So if I choose variables say ABC, DEF and PQR, I am passing the specifications of these variables to input1.csv, input2.csv and input3.csv respectively.   This means in another case even if I choose say LMN, DEF and XYZ in this order, then my input1.csv will have de...
2010 May 28
3
[LLVMdev] Vectorized LLVM IR
Hi, We are experimenting directly generating vectorized LLVM IR (using <8 x float> kind of types), then compiling the code to SSE on a 64 bits machine. Right now the equivalent code in scalar mode sill outperform the SSE one. What is the quality of the SSE support in X86 LLVL backend? Are they any specific things to be aware of to improve the speed? Thanks Stéphane Letz
2000 Nov 02
1
Pl. provide and Input for var.test (PR#716)
...o of variances is not equal to 1 95 percent confidence interval: 0.4675884 1.8646602 sample estimates: ratio of variances 0.950451 (CaseB) Now I want R to give me the same output as above, when I read it from a file. The commands I gave are: R library(ctest) x<-read.table("input1.txt", header = FALSE) y<-read.table("input2.txt", header = FALSE) var.test(x,y) The output generated by R is an error: "not enough x observations" I want to know why is this error coming, since I am creating the input1.txt from rnorm(50) and input2.txt from rnorm(30),w...
2011 Jul 05
1
Executing a function several time, how to save the output
Hi all, I try to exceute a function "myfun" that should use as input "input1.csv" and "input2.csv" . Then I try to save the output dat33 on a csv file (on per each time I execute input1..input 2 and so on). So my problem is how to finally obtain several csv file with "ggt1.csv", "ggt2.csv". The program creates ggt1.csv but BUT when runs...
2000 Nov 14
3
2 plots 1 figure
How do you obtain two plots on the same figure? for example plot(rnorm(100) plot(rnorm(100),type="l") -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To:
2007 Feb 25
3
Macros in R
Dear members, I have started to work with R recently and there is one thing which I could not solve so far. I don't know how to define macros in R. The problem at hand is the following: I want R to go through a list of 1:54 and create the matrices input1, input2, input3 up to input54. I have tried the following: for ( i in 1:54) { input[i] = matrix(nrow = 1, ncol = 107) input[i][1,]=datset$variable } However, R never creates the required matrices. I have also tried to type input'i' and input$i, none of which worked. I...
2011 Jul 01
2
Eliminating a row if something happens
...emove" the line (I tried this) but doesn´t works...I´m really a asn else if(data[i,]=data[-i,]) } You see imagine my data matrix is 10x4 and only 3 rows passes the condition...the resulting matrix will be 3x4 I tried also to save the new matrix as csv like this write.csv(data, file = "input1.csv") How should I proceed to save as a txt? Many thanks I really like this problems but I feel my mind is restricted to more easy things¡¡¡jajaj [[alternative HTML version deleted]]