/** * Create an identical copy of this feature. This permits FeatureExtractor to use the prototype * pattern to create new composite features using metafeatures. */ public Object clone() { PeakFinder ret = new PeakFinder(); try { ret.setPeakThreshold(peakThreshold); } catch (Exception e) { e.printStackTrace(); } return ret; }