getPeakStatistics function

Extract peak statistics