similar to: calculate difference of consecutive cells in vector

Displaying 20 results from an estimated 1000 matches similar to: "calculate difference of consecutive cells in vector"

2005 Feb 23
2
[LLVMdev] Python bindings for LLVM API
Hi, I would like to share my experimental LLVM API Python bindings with the LLVM enthusiasts. I have created Boost.Python wrappers largely for the VMCore interface and other selected interfaces (e.g. ExecutionEngine). The bindings provide direct runtime access to the LLVM bytecode and JIT execution features from Python. The bindings are complete enough so that one can e.g. run the Fibonacci
2007 Feb 01
2
Index mapping on arrays
Dear R-community, I have some trouble with index mappings for arrays. If, for example, I have the array R> A <- array(1:9, c(3,3,2)) and two index mappings both of same size R> x <- c(2, 3) R> y <- c(1, 2) Now I want to access the elements (A[1, x[i], y[i]])_i of A, i.e. A[1, x[1], y[1]] = A[1, 2, 1] and A[1, x[2], y[2]] = A[1, 3, 2]. If I use R> A[1, x, y] I would get
2006 Mar 06
1
./configure doesn't work
I tried to get a new configure skript with autoconf and then run it but it didn't work: ludwig@Ludwigsnb:~/wine$ autoconf ludwig@Ludwigsnb:~/wine$ ./configure checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking whether make sets $(MAKE)... no checking for gcc... gcc checking for C compiler default output file name... configure:
2006 May 20
0
No subject
#short example version of input file with 2 runs and 5 time steps (instead of 17 runs and 500 time steps) run t cover 1 1 0.234306 1 2 0.188896 1 3 0.198193 1 4 0.213959 1 5 0.184952 2 1 0.189316 2 2 0.185631 2 3 0.20211 2 4 0.216064 2 5 0.216064 #calculate the correlation of lag 1 over 17 replicates a<-0 for (i in 1:17) { c<-ts( cover[run==i] ) d<-acf( c, lag=1, plot=F) a<-a+d$acf[2]
2005 Feb 24
0
[LLVMdev] Python bindings for LLVM API
Jarno, This looks like it could be very valuable - thanks for making it available. Just out of curiosity, do you have any specific uses in mind for which you created these bindings? --Vikram http://www.cs.uiuc.edu/~vadve http://llvm.cs.uiuc.edu/ On Feb 23, 2005, at 5:21 PM, Jarno Seppänen wrote: > Hi, > > I would like to share my experimental LLVM API Python bindings with >
2006 Sep 02
3
Dividing objects in classes using function sample()
Hello everyone, I've a problem and dont know how to solve. This is my first posting and it would be fantastic if you could help me. I want to divide n objects in k classes and need an output with all (n+1)(n+2)/2 possibilities. For example n=4, k=3: That would be: 4 0 0 3 1 0 3 0 1 2 2 0 2 1 1 2 0 2 1 3 0 1 2 1 1 1 2 1 0 3 0 3 1 0 2 2 0 1 3
2007 Mar 22
1
Mailing list beserk - next thing
Hi there! As there seems to be a problem with mailman, I unsubscribed yesterday evening. But I still get Mail - this morning about 700!!! Is there anything I can do about this? I don? t want to get flooded anymore. I sure will resubscribe as soon as the problem is fixed, but as for now, this is not acceptable!!! Greets, Dennis -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
2007 Mar 24
1
frequency tables and sorting by rowSum
Dear list, I have some trouble generating a frequency table over a number of vectors. Creating these tables over simple numbers is no problem with table() > table(c(1,1,1,3,4,5)) 1 3 4 5 3 1 1 1 , but how can i for example turn: 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 0 into 0 0 1 1 1 0 0 2 0 1 0 3 My second problem is, sorting rows and columns of a matrix by the rowSums/colSums. I did it
2007 Apr 11
2
list of features and question to technology
Hey there, I am wondering if there is any list available giving me a list of feature of icecast (maybe also in comparision with shoutcast). Moreover, I was thinking if and how the following scenario is solved: suppose I'd like to stream 1000 different songs at one time, i.e. 1000 user will listen to different mp3s hosted by my streaming server. Are in this scenario all 1000 songs (at
2006 Jul 10
3
10^x instead 10EX on plot axes. How?
Hi, I'm drawing a very simple plot with both axes logarithmic (default base 10). Example: vec=c(1,10,100,1000,10000,100000,1000000,10000000) plot(vec,vec,log="xy") The axes on the plot now show the technical notation like 1E+3 but I would prefer to have it the notation 10 ^3 i.e. with the exponent here 3 superscript (raised). Any help very much appreciated! Best Regards Tom --
2007 Feb 16
1
Fwd: Re: user add script, machine add script
Hello to all, after noone bother my subject. I think I'm all alone making mistakes on this thing. But I should really know if it is possible to mange the administration of samba in an comfortable way. After all the years I worked with it I never did manage it to be in an sufficent manner. Is there a plan in the future to have a central administration within the samba package? --------
2006 Mar 29
2
intercepting messages from FXScrollBar toFXScrollArea
Hello Lyle, the Task, I want to accomplish: I''ve created a little app that is used on a PC with a touch screen. To ease hitting the keys, the keys and the scrollbars are really big (45 pixels). So the ScrollCorner is also really big and I just wanted to use this space by moving the ScrollDown Botton down to the position of the ScrollCorner (like the attachment shows) The code looks like
2006 Mar 04
1
replicated time series - lme?
Dear R-helpers, I have a time series analysis problem in R: I want to analyse the output of my simulation model which is proportional cover of shrubs in a savanna plot for each of 500 successive years. I have run the model (which includes stochasticity, especially in the initial conditions) 17 times generating 17 time series of shrub cover. I am interested in a possible periodicity of shrub
2012 Jan 25
4
x11() graphic device, displaying raster
Hello, I am wondering about the X11() graphic device on Windows. I try to plot a raster image but nothing gets displayed. I found some pages where it is mentioned that x11() not always supports raster rendering. Is there any add on for x11, any update or any R-package which solves that displaying problem in Windows? What I try to test it is an example from the package {raster}: library(raster)
2012 Jan 25
4
x11() graphic device, displaying raster
Hello, I am wondering about the X11() graphic device on Windows. I try to plot a raster image but nothing gets displayed. I found some pages where it is mentioned that x11() not always supports raster rendering. Is there any add on for x11, any update or any R-package which solves that displaying problem in Windows? What I try to test it is an example from the package {raster}: library(raster)
2007 May 03
3
factanal AIC?
Dear list members, Could any expert on factor analysis be so kind to explain how to calculate AIC on the output of factanal. Do I calculate AIC wrong or is factanal$criteria["objective"] not a negative log-likelihood? Best regards Jens Oehlschl?gel The AIC calculated using summary.factanal below don't appear correct to me: n items factors total.df rest.df model.df
2007 May 03
3
factanal AIC?
Dear list members, Could any expert on factor analysis be so kind to explain how to calculate AIC on the output of factanal. Do I calculate AIC wrong or is factanal$criteria["objective"] not a negative log-likelihood? Best regards Jens Oehlschl?gel The AIC calculated using summary.factanal below don't appear correct to me: n items factors total.df rest.df model.df
2004 Feb 16
1
consensus trees/groups from clustering
Hi, I wish to build consensus groups/tree from a set of bootstraps from a clustering algorithm such as hc or k-means, but can't find an R-function that does this. Does anyone know of an R procedure/function which allows one to build such consensus groups/tree .? Many thanks, Andrew ******************************************************************* Dr Andrew E Teschendorff Hutchison/MRC
2004 Feb 13
1
Samba 3.0.2 ADS Member - Failed to verify incoming ticket!
I use Samba 3.0.2rc2 on Suse 9.0 (heimdal 0.6-68) as a Domainmember for File -and Printservices (about 100 Users). The Linuxbox ist added to the ADS, the User are mapped through winbindd. Everything works.. The I upgraded to Samba 3.0.2 and if I start the daemon, after a while follow Error occured if a Domainclient will connect to the Sambabox: [2004/02/13 13:33:43, 1]
2018 Jan 31
3
Problems with "predict" function ii
I have realised that I should have used "detach" before attaching another dataframe, but even when I do this it's still giving me lots of lines, rather than just one: My code: m<-runif(1,0,1) m mres<-m*(seq(1,12)) mres ssd<-rexp(1,1) ssd devs<-rep(0,length(mres)) for(i in 1:length(mres)){devs[i]<-rnorm(1,0,ssd)} devs plot(-10,-10,xlim=c(1,24),ylim=c(0,20000))