MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / sort

Method sort

ij/src/main/java/ij/util/ArrayUtil.java:78–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 public void sort() {
79 if (size<values.length) {
80 float[] tosort = new float[size];
81 System.arraycopy(values, 0, tosort, 0, size);
82 Arrays.sort(tosort);
83 System.arraycopy(tosort, 0, values, 0, size);
84 } else
85 Arrays.sort(values);
86 sorted = true;
87 }
88
89 public boolean isMaximum(double val) {
90 int i = 0;

Callers 5

medianSortMethod · 0.95
addLutsMethod · 0.45
showSwitchPopupMenuMethod · 0.45
getPropertiesMethod · 0.45
rankMethod · 0.45

Calls 1

arraycopyMethod · 0.45

Tested by

no test coverage detected