search for: vetorization

Displaying 20 results from an estimated 29 matches for "vetorization".

Did you mean: vectorization
2009 Mar 19
2
find the index of the smallest or biggest number in a vetor or data.frame
Dear R experts, How to find out the index of minimum or maxmum number in a vetor or data.frame? For example, a= n price 1 50 -2 100 0 200 -1 300 ...... I want to find out the row which the n is the smallest or largestest and extract the price. Thanks Ted -- View this message in context:
2004 Jul 23
3
vetor autoregressions and BVARs
I have not been able to find any programs for running vector autoregressions with R. I am interested in running Bayesian VARs and also running VARs that run all combinations of variables in the vector. Is anyone currently developing this? -Nirav Mehta
2008 Nov 10
2
as.Data with minutes resolution
Hi, I have a vetor os dates with day and hour:minutes. > time1 <- c("03/08/08-11:00","03/08/08-11:10") > time1 <- as.Date(time1,"%d/%m/%y-%R") > summary(time1) Min. 1st Qu. Median Mean 3rd Qu. Max. "2008-08-03" "2008-08-03" "2008-08-03" "2008-08-03" "2008-08-03"
2011 Jan 30
3
How to do a moving window on standard deviation
I'd like to use vectorization to take a 4 point moving window on standard deviation on the close column and create another variable (st.dev) in the dataframe. Here's the dataframe head(xyz) Date Close 1 2011-01-28 56.42 2 2011-01-27 57.37 3 2011-01-26 56.48 4 2011-01-25 56.39 5 2011-01-24 55.74 6 2011-01-21 55.46 So the first 3 elements to the new st.dev column would be zero
2004 Feb 09
0
Fit system of equations
Hi R-masters I have this system of equations R(x,t)= a(t)+b(x,t) a(t) = c + d*t b(t) = e + f*t where x is a vetor of age<-c(37,42,47,52,57,62,67,72,77,83), t is vetor of year (1980:2000) R(x,t) = Rate of mortality in age x on year t a(t) = base mortality on year t b(x,t) = exponential rate of mortality for age x on year t b(t) = exponential rate of mortality on year t I wish is possible
2008 Nov 10
1
comparing rows - a possible solution
Hello, sorry for posting this independently of the original thread, but it is not that easy to answer to mails, when receiving the r-help as digest... ... The question was: > I compare each row of a matrix with each row of another matrix. > > testmat1 <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16), nrow=4) > testmat2 <- matrix(c(1,2,3,5,5,6,7,8,9,10,11,12,13,14,15,16),
2012 Oct 29
1
How emulate the function 'order' without with the function 'sort' in R
Ol? amigos tudo bem ? Espero que sim. Sou novo aqui e gostaria muito da ajuda dos senhores para resolver um pequeno probleminha no R. Ent?o, estou com um probleminha com uma atividade que relaciona duas fun??es no R, ? o seguinte: Primeiro atrav?s da fun??o sample ? criado um vetor aleat?trio: x <- sample(1:100, 20) Depois aplico a fun??o sort que tem como objetivo ordenar os elementos em
2008 Aug 20
3
Confidence Interval
Hi! With the following script, I'm trying to make a demonstration of a Confidence Interval, but I'm observing some differences on tails. # Teste de média entre uma amostra e uma população normal # Autor: Raphael de Freitas Saldanha # Agosto de 2008 n <- 200 # Sample size xbar <- 100 # Sample mean s <- 2 # Sample SD nc <- 0.95 # Confidence level (95%
2009 Feb 13
3
[LLVMdev] Modeling GPU vector registers, again (with my implementation)
It seems to me that LLVM sub-register is not for the following hardware architecture. All instructions of a hardware are vector instructions. All registers contains 4 32-bit FP sub-registers. They are called r0.x, r0.y, r0.z, r0.w. Most instructions write more than one elements in this way: mul r0.xyw, r1, r2 add r0.z, r3, r4 sub r5, r0, r1 Notice that the four elements of r0 are written
2012 Mar 07
4
problem with data
Good Afternoon, ?? I have a small problem with the following code. # The x.sub$Time[[1]] 2006-10-31 19:03:01 EST # when put in variable star give-me star<-x.sub$Time[[1]] print(star) print(x.sub$Time[[1]]) [1] 1 36 32 -........ do not understand why -- View this message in context: http://r.789695.n4.nabble.com/problem-with-data-tp4453510p4453510.html Sent from the R help mailing
2018 Aug 02
2
New and more general Function Merging optimization for code size
Hi everyone, I'm currently working on a new function merging optimization that is more general than the current LLVM function merging optimization that works only on identical functions. I would like to know if the community has any interest in having a more powerful function merging optimization. ---- More Details ---- Up until now, I have been focusing on the quality of the code
2018 Aug 02
2
New and more general Function Merging optimization for code size
...arity metric computed from the function's > "fingerprint". > > > Can you explain in more detail how this works? > > (I'm also, as a side note, keeping my eye out for things like this that > might also help us efficiently do more-compile-time-efficient SLP > vetorization). > > -Hal > > The threshold limits the exploration to focus on the top functions of the > rank. > The idea is to make the ranking mechanism as lightweight as possible. > > Cheers, > > Rodrigo Rocha > > > _______________________________________________ > L...
2016 Nov 27
0
ifelse() woes ... can we agree on a ifelse2() ?
For S Ellison, just clarifying, I am Suharto Anggono, not Martin Maechler. "Martin et al.," from my previous E-mail was the beginning of message from Gabriel Becker, that I quoted. The quoted "still a bit disappointed that nobody has taken a look" is from Martin Maechler. In all of the proposed 'ifelse'-like functions so far, including from me (that I labeled as
2007 Jul 14
0
memory problem
Hi, My computer has 2GB of ram and I also request 2GB of virtual ram from c drive, therefore totally I have 4GB of ram. Before I open R workshop, I also add "C:\Program Files\R\R-2.5.0\bin\Rgui.exe" --max-mem-size=3000Mb--max-vsize=3000Mb" into the target of R by right clicking the R icon-properties. I am running a program (DPglmm), which is built in DPpackage. The program is
2006 Mar 10
2
ifelse problem
Dear all, There is something I'm missing in order to understand the following behavior: > aa <- c("test", "name") > ifelse(any(nchar(aa) < 3), aa[-which(nchar(aa) < 3)], aa) [1] "test" > any(nchar(aa) < 3) [1] FALSE Shouldn't the ifelse function return the whole aa vector? Using if and else separately, I get the correct result... >
2007 Jul 10
0
Theora Hardware: Integration with LEON is completed!
Hi, The Integration with LEON (first part of my GSoC) is completed. http://atlas.lsc.ic.unicamp.br/~andre.lnc/theora_integration_with_leon3_full.png At the last week I had (leon3 + linux + libtheora) and (leon3 + send_vector_of_input + theora hardware) working ok. Firstly, I thougth that it just would be: http://atlas.lsc.ic.unicamp.br/~andre.lnc/theora_integration_with_leon3.png But it
2009 Sep 01
3
data frame
HI, R user, I generate the vectors with the same length. I want to put each vector into each column of data frame. Why it doesnt work`? rm<-data.frame() for(a in 1:6){ rm[,a]<-getmeasure(p1,a,speech) } thanks a lot Tammy _________________________________________________________________ Share your memories online with anyone you want.
2003 May 23
1
isSeekable returns F on seekable file
Hi, Seems that on RWin 1.7.0 and 1.6.2 isSeekable returns F on binary files, while seek() works as expected on the same connection - see example below: > con = file(nm, "rb") > isSeekable(con) [1] FALSE > readBin(con, double(), 10) [1] 7.263824e-317 5.968155e-317 2.340685e-317 2.734062e-312 4.088386e-312 4.670335e-317 [7] 6.097545e-317 3.396341e-312 6.615484e-317
2009 Feb 13
0
[LLVMdev] Modeling GPU vector registers, again (with my implementation)
On Feb 13, 2009, at 9:47 AM, Alex wrote: > It seems to me that LLVM sub-register is not for the following > hardware architecture. > > All instructions of a hardware are vector instructions. All > registers contains > 4 32-bit FP sub-registers. They are called r0.x, r0.y, r0.z, r0.w. > > Most instructions write more than one elements in this way: > > mul
2016 Apr 25
0
Splitting Numerical Vector Into Chunks
Hi Is this http://stackoverflow.com/questions/2150138/how-to-parse-milliseconds-in-r what do you want? Cheers Petr > -----Original Message----- > From: Sidoti, Salvatore A. [mailto:sidoti.23 at buckeyemail.osu.edu] > Sent: Sunday, April 24, 2016 1:48 AM > To: PIKAL Petr <petr.pikal at precheza.cz>; William Dunlap > <wdunlap at tibco.com>; Ista Zahn <istazahn at