|
45 | 45 | import fiji.plugin.trackmate.Dimension; |
46 | 46 | import fiji.plugin.trackmate.Logger; |
47 | 47 | import fiji.plugin.trackmate.Settings; |
48 | | -import fiji.plugin.trackmate.Spot; |
49 | 48 | import ij.IJ; |
50 | 49 | import ij.ImagePlus; |
51 | 50 | import net.imagej.ImgPlus; |
@@ -324,21 +323,18 @@ private static final double[] getRange( final double[] data ) |
324 | 323 | } |
325 | 324 |
|
326 | 325 | /** |
327 | | - * Store the x, y, z coordinates of the specified spot in the first 3 |
328 | | - * elements of the specified double array. |
329 | | - */ |
330 | | - public static final void localize( final Spot spot, final double[] coords ) |
331 | | - { |
332 | | - coords[ 0 ] = spot.getFeature( Spot.POSITION_X ).doubleValue(); |
333 | | - coords[ 1 ] = spot.getFeature( Spot.POSITION_Y ).doubleValue(); |
334 | | - coords[ 2 ] = spot.getFeature( Spot.POSITION_Z ).doubleValue(); |
335 | | - } |
336 | | - |
337 | | - /** |
338 | | - * Return the optimal bin number for a histogram of the data given in array, |
339 | | - * using the Freedman and Diaconis rule (bin_space = 2*IQR/n^(1/3)). It is |
340 | | - * ensured that the bin number returned is not smaller and no bigger than |
341 | | - * the bounds given in argument. |
| 326 | + * Returns the optimal bin number for a histogram of the data given in |
| 327 | + * array, using the Freedman and Diaconis rule (bin_space = 2*IQR/n^(1/3)). |
| 328 | + * It is ensured that the bin number returned is not smaller and no bigger |
| 329 | + * than the bounds given in argument. |
| 330 | + * |
| 331 | + * @param values |
| 332 | + * the values. |
| 333 | + * @param minBinNumber |
| 334 | + * a minimal number of bins. |
| 335 | + * @param maxBinNumber |
| 336 | + * a maximal number of bins. |
| 337 | + * @return a number of bins. |
342 | 338 | */ |
343 | 339 | public static final int getNBins( final double[] values, final int minBinNumber, final int maxBinNumber ) |
344 | 340 | { |
|
0 commit comments