Re: Proposal for 'math.e' (2007-08-23)
- Posted by Pete Lomax <petelomax at blueyonde?.c?.uk> Aug 24, 2007
- 719 views
Derek Parnell wrote: > > CChris wrote: > > I have a data series which decreases, then increases, then decreases even > > more, > > then increases less than before and so on. Think of global winter and summer > > rainfall over the long run, for instance. > > Then I'm interested not only in the absolute maximum (which start=1 will > > return), > > but also the local maxima further down the road, for which I must filter the > > first points in the series. > > Got it. You have a set of data which contains various intersecting and > non-intersecting > subsets. Such as annual rainfall which has various subsets for months, > seasons, > and ad hoc so one can ask questions such as ... > > highest rainfall for the year, for March, for Summer, since "that dust > storm > back on July 17th", etc ... But how can you get the highest rainfall for 2006, or March, or Summer, via a max(list,start) function? With max(list[i..j],1), that's how. So it should be either max(list) or max(list,start,end). Obviously this is a "whee I can write some code" moment, and no real thought has yet been put towards anybody actually finding the [] thing useful. Regards, Pete