def trimmed_mean(numpy_arr, lperc=0, hperc=0):
    """Get a trimmed mean value from array, with low and
    high percentage ignored."""
    alen = len(numpy_arr)
    return numpy_arr[(alen / 100 * lperc):
            (alen - (alen / 100 * hperc))].mean()