<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Array.rankPositions does not order positions correctly"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1003">1003</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Array.rankPositions does not order positions correctly
</td>
</tr>
<tr>
<th>Product</th>
<td>Fiji
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P4
</td>
</tr>
<tr>
<th>Component</th>
<td>Plugins
</td>
</tr>
<tr>
<th>Assignee</th>
<td>imagej-bugs@imagej.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tokamoto@biosearchtech.com
</td>
</tr>
<tr>
<th>CC</th>
<td>tokamoto@biosearchtech.com
</td>
</tr></table>
<p>
<div>
<pre>Running ImageJ version 1.49o. I'm trying to sort multiple arrays only in
relation to one of the arrays. Need to have the rank of that one array, so I
can sort all of them. Tested the Array.rankPositions function, but it doesn't
output the right rankings. Below is the small test macro I used, and below
that is the output.
test = newArray(15, 10, 50, 20, 40, 1, 2, 3);
new = Array.rankPositions(test);
Array.show(test, new);
output is:
test new
15 5
10 6
50 7
20 1
40 0
1 3
2 4
3 2
Information about your version of Java:
os.arch => amd64
os.name => Windows 7
os.version => 6.1
java.version => 1.6.0_24
java.vendor => New Oracle
java.runtime.name => Java(TM) SE Runtime Environment
java.runtime.version => 1.6.0_24-b07
java.vm.name => Java HotSpot(TM) 64-Bit Server VM
java.vm.version => 19.1-b02
java.vm.vendor => Sun Microsystems Inc.
java.vm.info => mixed mode
java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
java.specification.name => Java Platform API Specification
java.specification.version => 1.6
sun.cpu.endian => little
sun.desktop => windows
file.separator => \
The up-to-date check says: CHECK_TURNED_OFF
Information relevant to JAVA_HOME related problems:
JAVA_HOME is set to: C:\Fiji.app/java/win64/jdk1.6.0_24//jre
imagej.dir => C:\Fiji.app
Information about the version of each plugin:
Activated update sites:
ImageJ: <a href="http://update.imagej.net/">http://update.imagej.net/</a> (last check:20150122024514)
Fiji: <a href="http://fiji.sc/update/">http://fiji.sc/update/</a> (last check:20150203080057)
Files not up-to-date:
772f7227 (MODIFIED) 20150203100028 jars/ij-1.49m.jar
1ad3be0d (LOCAL_ONLY) 20150107090442 jars/jpedalSTD.jar
6ddc36e4 (LOCAL_ONLY) 20150127113614 macros/Individual/SNR.ijm
7e29c562 (LOCAL_ONLY) 20150109131628
macros/Individual/Startup/StartupMacros.fiji.ijm
43ce2fa9 (LOCAL_ONLY) 20150127113919 macros/Individual/automerge.ijm
ed5b891e (LOCAL_ONLY) 20150109133039 macros/Individual/autominmaxtif.ijm
23985b42 (LOCAL_ONLY) 20150127114211 macros/Individual/cellSNR.ijm
bf227d21 (LOCAL_ONLY) 20150127114005 macros/Individual/openzproject.ijm
3e3bcc64 (LOCAL_ONLY) 20150127114054 macros/Individual/regexmerge.ijm
c86dc415 (MODIFIED) 20150209134941 macros/StartupMacros.fiji.ijm
9305cb25 (LOCAL_ONLY) 20150123160923 plugins/NicoIJPlugins_.jar
a5f48127 (LOCAL_ONLY) 20150123160730 plugins/TSFProto.jar
e5789fc6 (LOCAL_ONLY) 20150123160727 plugins/commons-math-2.0.jar
7c3684b3 (LOCAL_ONLY) 20150123160732 plugins/gproto.jar
5e62e842 (LOCAL_ONLY) 20150123160725 plugins/jcommon-1.0.16.jar
f38a3c3b (LOCAL_ONLY) 20150123160712 plugins/jfreechart-1.0.13.jar
569c5489 (LOCAL_ONLY) 20141120221500 plugins/mcib3d-core3.0.jar
1979e4e6 (LOCAL_ONLY) 20141120234754 plugins/mcib3d_plugins3.0.jar
8cb8d89b (LOCAL_ONLY) 20120924071500 plugins/quickhull3d.jar</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>