()
| 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; |
no test coverage detected