Student/Project Assistant
Educational Psychology - Quantitative Methods
The University of Wisconsin - Madison
- Original Message -
From: Martin Morgan
Date: Wednesday, September 9, 2009 4:40 pm
Subject: Re: [R] Recursion is slow
To: Bryan Keller
Cc: William Dunlap , r-help@r-project.org
Sent: Wednesday, September 09, 2009 3:25 PM
> To: Martin Morgan
> Cc: William Dunlap; r-help@r-project.org
> Subject: Re: [R] Recursion is slow
>
> Thanks Martin! It seems to be right on and it is blazing
> fast! I greatly appreciate the responses from you and Bill
> both. A
little memory inefficient, but seems to scale fairly well.
Martin
>
> Bryan
>
> -
> Bryan Keller, Doctoral Student/Project Assistant
> Educational Psychology - Quantitative Methods
> The University of Wisconsin - Madison
>
> - Original Message -
> Fro
.
Bryan
-
Bryan Keller, Doctoral Student/Project Assistant
Educational Psychology - Quantitative Methods
The University of Wisconsin - Madison
- Original Message -
From: William Dunlap
Date: Thursday, September 3, 2009 6:41 pm
Subject: RE: [R] Recursion is slow
To: Bryan Keller
g
> Subject: [R] Recursion is slow
>
> The following recursion is about 120 times faster in C#. I
> know R is not known for its speed with recursions but I'm
> wondering if anyone has a tip about how to speed things up in R.
>
> #"T" is a vector and "m&
The following recursion is about 120 times faster in C#. I know R is not known
for its speed with recursions but I'm wondering if anyone has a tip about how
to speed things up in R.
#"T" is a vector and "m" is a number between 1 and sum(T)
A <- function(T,m) {
lt <- length(T)
if (lt == 1) {
6 matches
Mail list logo