MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Finding local maxima in multidimensional array (efficiently)

  • To: mathgroup at
  • Subject: [mg114570] Re: Finding local maxima in multidimensional array (efficiently)
  • From: Julian Francis <julian.w.francis at>
  • Date: Wed, 8 Dec 2010 06:40:37 -0500 (EST)
  • References: <id4sen$cb4$>

Dear Carl,

Thanks very much for your solution. I am getting somewhat different
timings than you have. You have lm working about ten times as fast as
localmaxima2, whereas on my machine I have lm about twice as fast as
localmaxima2. It would appear that you're machine is somewhat faster
than mine, but that doesn't explain the difference in the ratios of
the times for the two functions (I get 55 secs for localmaxima2 and 28
secs for lm).
I'm not sure what the reason for this is. My machine is a dual core
intel, and I am on Mathematica v7.

But thank you for the algorithm (apologies for late reply) but this is
an interesting approach, and I might adapt that for some other
problems I have. (My interests are machine vision).


  • Prev by Date: 8.0 Control Systems ToDiscreteTimeModel[]
  • Next by Date: Re: Replacement Rule with Sqrt in denominator
  • Previous by thread: Re: Finding local maxima in multidimensional array (efficiently)
  • Next by thread: Font change of input & output cells