def getIntensityPercentile(sampleList, cutoffPercent):
    """
    Returns the nth percent of energy represented in a dataset
    """
    tmpSampleList = sorted(sampleList)
    return tmpSampleList[int(len(tmpSampleList) * cutoffPercent)]
