Recently, a new Ruby implementation makes it several times faster:
http://www.antoniocangiano.com/articles/2007/02/19/ruby-implementations-shootout-ruby-vs-yarv-vs-jruby-vs-gardens-point-ruby-net-vs-rubinius-vs-cardinal
Jason Liao, http://www.geocities.com/jg_liao
Associate Professor
I have been comparing R with other languages and systems. One peculiar feature
of R is there is no scalar. Instead, it is just a vector of length one. I
wondered how much performance penalty this deign cause, particular in
situations with many scalars in a program. Thanks.
Jason Liao
/importance_sampling/java is where the java code is.
x = runif(1000)
y = runif(1000)
#the above are two vectors to convolve
#now you can call the Java method as
z=.jcall(my_convolve, [D, convolve, x,y)
#z stores the result
Hope this helps.
Jason Liao, http://www.geocities.com/jg_liao
by adding the following line somewhere in your Makefile.
%.o : %.mod
hope this helps!!!
Jason Liao,
http://www.geocities.com/jg_liaoAssociate Professor of Biostatistics
Drexel University School of Public Health
245 N. 15th Street, Mail Stop 660
Philadelphia, PA 19102-1192
phone 215-762-3934
gang.f90
m2c-o jian.o jian.mod
make: m2c: Command not found
make: *** [jian.o] Error 127
Can anyone point me to the direction to solve this problem. Thank you in
advance.
Jason Liao, http://www.geocities.com/jg_liaoAssociate Professor of Biostatistics
Drexel University School of Public Health
245
).
of course, such comparsions don't make too much sense: the reason to
use
R will definitely not be its speed (which, luckily, often does not
matter), but the combination of flexible language, the number of
available libraries and the good 2D graphics.
joerg
Jason Liao, http
==0) then
value = 1.
else if(k==n) then
value = 1.
else
value = choose(n-1, k) + choose(n-1, k-1)
end if
end function
program main
write(*,*) choose(30, 15)
end program
Jason Liao, http://www.geocities.com/jg_liao
Department of Epidemiology and Biostatistics
Drexel
: +44 1865 272595
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb
University of Medicine and Dentistry of New Jersey
683 Hoes Lane West, Piscataway NJ 08854
phone 732-235-5429, School of Public Health office
phone 732-235-9824, Cancer Institute
have encountered
same problem but no solution is found by googling
How can I fix this problem? Many thanks.
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb
University of Medicine and Dentistry of New Jersey
683 Hoes Lane West, Piscataway NJ
lines
of code. Which operating system will make this the easiest? I mostly
work on Windows but would open to Mac OS X or Linux if the benefit is
compelling.
Thanks in advance.
Jason
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb
University
as expected.
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb
University of Medicine and Dentistry of New Jersey
683 Hoes Lane West, Piscataway NJ 08854
phone 732-235-5429, School of Public Health office
phone 732-235-9824, Cancer Institute of New
Thank you, Prof. Ripley. Yes, it turned out that different R sessions
(batch mode) loaded the same work space. Inserting
rm(list=ls(all=TRUE))
on top of the code solves the problem.
--- Prof Brian Ripley [EMAIL PROTECTED] wrote:
On Wed, 15 Jun 2005, Jason Liao wrote:
I did several
From: Jason Liao
I am excited to learn that Prof. Tierney is bringing to us
compiled R.
I would like to learn when it will be available. This information
will
be useful in scheduling some of my projects. Thanks.
Jason
Jason Liao, http://www.geocities.com/jg_liao
Dept
I am excited to learn that Prof. Tierney is bringing to us compiled R.
I would like to learn when it will be available. This information will
be useful in scheduling some of my projects. Thanks.
Jason
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2.umdnj.edu
natively).
Jason Liao wrote:
Hello, everyone! I guess no one is still using R on Sun Sparc
these
days. But our department has a (pretty new) two-CPU Sun server.
We
recently compiled R as a 64 bit application and expected a
performance
boost. But it runs 25-30% slower than the 32
? Thanks!
Jason
=
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb
University of Medicine and Dentistry of New Jersey
phone 732-235-5429, School of Public Health office
phone 732-235-8611, Cancer Institute of New Jersey office
moble phone 908
it is done. Currently, implemented in Java, the KD
tree kernel density algorithm can be an order faster than the double
loop brute force method. I will find out this will remain true in R.
Regards,
Jason
--- Thomas Lumley [EMAIL PROTECTED] wrote:
On Thu, 12 Aug 2004, Jason Liao wrote:
Dear
;
for (int i=0; ibBox[0].length;i++)
{
diff = (bBox[1][i] - bBox[0][i])/2.;
value += diff*diff;
}
return Math.sqrt(value);
}
}
=
Jason Liao, http://www.geocities.com/jg_liao
Dept. of Biostatistics, http://www2
continues until the data points are divided. Does R's list support this
recursive data structure? If yes, can you give a sample program?
Regards,
Jason
--- Thomas Lumley [EMAIL PROTECTED] wrote:
On Thu, 12 Aug 2004, Jason Liao wrote:
Good morning! I recently implemented a KD tree in JAVA
I have a microarray analysis program using Monte Carlo Markov chain. I
downloaded R 1.9 alpha and saw FOUR times increase in speed.
Completelyly amazing. Specifically, one iteration takes 44 seconds
under R 1.8.1 and only 10 seconds under R 1.9.0 alpha. I have averaged
over many iterations so
One of the real advances (in my humble oppinion of course) of 2003 is
the Very Fast Multivariate Kernel Density Estimation algorithm by Alex
Gray which achieves several order of speed improvement by using
Computational Geometry to organize the data. The algorithm is now
implemented in C++ with
Good evening! I have a multi-dimensional minimization problem whose
gradient is pretty hard to code. I tried Nelder and Mead method
implemented in function optim and it does not work well. I also tried
the quasi Newton method in optim using difference as approximate
derivative. It does not work
Hello, everyone! I wonder if any R package can do the multivariate
Smirnov test. Specifically, let x_1,..,x_n and y_1,...,y_m be
multivariate vectors. I would like to test if the two samples are from
the same underlying multivariate distribution. Thanks in advance.
Jason
=
Jason G. Liao,
I got the following using the benchmark program at
http://www.sciviews.org/other/benchmark.htm
under Windows 2000 prof., 256 MB of RAM
R Benchmark 2
=
Number of times each test is run__: 3
I. Matrix calculation
-
Creation,
I have been using a laptop computer of Pentium III 1.13 Ghz. I heard
that AMD's Athlon has excellent floating point capacity. So I bought a
Athlon 2200+ laptop yesterday. I expected that new Athlon 2200+ will be
twice as fast as the P III 1.13 GB. I ran a R simulation program and
the new computer
have a dual P4 Xeon 2.4 GHz with 8GB RAM, and jobs run more
than twice
as fast as my PIII 933MHz laptop.
Andy
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:55 PM
To: Jason Liao
Cc: [EMAIL PROTECTED]
Subject: Re: [R
without having to check the vector element by element? Thanks a lot!
Jason
=
Jason G. Liao, Ph.D.
Division of Biometrics
University of Medicine and Dentistry of New Jersey
335 George Street, Suite 2200
New Brunswick, NJ 08903-2688
phone (732) 235-8611, fax (732) 235-9777
27 matches
Mail list logo