### Question:
SmoothPeakFinder { public nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaks(ImageStack ims, int radius, float snr){ float [] pixels = ImageStackToFromArray.ImageStackToFloatArray(ims); int width = ims.getWidth(); int height = ims.getHeight(); return findPeaks(pixels, width, height, radius, snr); }  String getExecutionMode(); nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaks(ImageStack ims, int radius, float snr); nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaks(float [] pixels, int width, int height, int radius, float snr); nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaksWithDOG(ImageStack ims, int radius, float snr,
                                            float smallSigma, float bigSigma); nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaksWithDOG(float [] pixels, int width, int height, int radius, float snr,
                                            float smallSigma, float bigSigma); nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaksWithExtendedLaplacian(ImageStack ims, int radius, float snr); nanoj.core.java.localisation.particlesHandling.ParticlesHolder findPeaksWithExtendedLaplacian(float [] pixels, int width, int height, int radius, float snr);  }### Answer:
@Test public void testFindPeaks() throws Exception { SimulateStackWithParticles sim_part = new SimulateStackWithParticles(); ImagePlus imp = sim_part.generateStackWithRandomParticles(64, 64, 100, 10, 0, 1000, 0, 1.5f, 0, 1.5f, 0, 50, 500, true); ParticlesHolder peaks = pf.findPeaks(imp.getImageStack(), 5, 15); String error = peaks.getDetectionErrorString(sim_part.getParticlesHolder(), 1, 0, 0); System.out.println(error); }