def METHOD_NAME(spec):
    """5 point smoothing function.
    Recommended for use in low statistics in
    G.W. Phillips , Nucl. Instrum. Methods 153 (1978), 449
    Parameters
    ----------
    spec: a spectrum object
    Returns
    -------
    smooth_spect: a spectrum object
    """
    smooth_spec = copy.deepcopy(spec)
    smooth_spec.counts = []
    smooth_spec.counts.append(spec.counts[0])
    smooth_spec.counts.append(spec.counts[1])
    spec_len = len(spec.counts)
    i = 2
    while i < spec_len - 2:
        val = (1.0 / 9.0) * (
            spec.counts[i - 2]
            + spec.counts[i + 2]
            + (2 * spec.counts[i + 1])
            + (2 * spec.counts[i - 1])
            + (3 * spec.counts[i])
        )
        smooth_spec.counts.append(val)
        i = i + 1
    smooth_spec.counts.append(spec.counts[i])
    smooth_spec.counts.append(spec.counts[i + 1])
    smooth_spec.spec_name = spec.spec_name + " smoothed"
    return smooth_spec