Login  Register

Re: Tools.quicksort missing

Posted by Francis Burton-3 on Nov 07, 2013; 10:38am
URL: http://imagej.273.s1.nabble.com/Personal-Update-Sites-for-Fiji-ImageJ-tp5004967p5005488.html

Hi Jan (and José),

Thanks to both of you for your speedy reply!

The quicksort function was removed, but Arrays.sort()
does the job just as well (and allows removal of the
index parameter which I didn't use).

Francis

> -----Original Message-----
> From: Jan Eglinger [mailto:[hidden email]]
> Sent: 07 November 2013 10:23
> To: [hidden email]; Francis Burton
> Subject: Re: Tools.quicksort missing
>
> Hi Francis,
>
> On 07.11.2013, 10:57 AM, Francis Burton wrote:
> > I just tried to re-compile a plugin I wrote a couple of
> > years ago and now get the error:
> >
> > cannot find symbol
> > symbol  : method quicksort(double[],int[])
> > location: class ij.util.Tools
> >      Tools.quicksort(asort, index);
> >           ^
> >
> > I'm using ImageJ 1.48f & Java 1.6.0_20 (64-bit).
> >
> > Has the quicksort function been removed? If so, is there
> > an equivalent call I can substitute?
>
> As far as I can see from this commit:
>
> http://fiji.sc/git/?p=ImageJA.git;a=commitdiff;h=dcec30f7a01cd
> 703866c61a825476d35a420bc2d
>
> the Tools.quicksort() function has been removed by Wayne with version
> 1.46p in May 2012. Maybe you can have a look at the source
> and see how
> far the new rank(double[] values) function can replace your
> functionality.
>
> Here's the javadoc link for Tools.java:
> http://jenkins.imagej.net/job/ImageJ1-javadoc/javadoc/index.ht
> ml?ij/util/Tools.html
>
>
> Cheers,
> Jan
>
>
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html