Message-ID: <1100908223.31008.79.camel@horizons.localdomain>
Date: 2004-11-19T23:50:23Z
From: Marc Schwartz
Subject: Running sum
In-Reply-To: <f8e6ff05041119144472b3854e@mail.gmail.com>
On Fri, 2004-11-19 at 16:44 -0600, hadley wickham wrote:
> Perhaps I'm missing something, but isn't the maximum of the cumulative
> sum simply the last value, ie. sum(x)?
>
> Hadley
Indeed!
And...going back to Sean's original post he did write:
"I just need max(Y)."
Thus, a whole group of us (independently) managed to over-engineer the
solution.
Presuming of course, that Sean does not require the entire cumulative
sum vector for other purposes.
I wonder what that says about human cognition....
Thanks,
Marc
<Cleaning his bi-focals...>