import math


def getCenterFrequency(filter_band):
    """
    Intermediate computation used by the mfcc function.
    Compute the center frequency (fc) of the specified filter band (l)
    This where the mel-frequency scaling occurs. Filters are specified so that their
    center frequencies are equally spaced on the mel scale
    """
    if filter_band == 0:
        center_frequency = 0
    elif filter_band >= 1 and filter_band <= 14:
        center_frequency = (200.0 * filter_band) / 3.0
    else:
        exponent = filter_band - 14
        center_frequency = math.pow(1.0711703, exponent)
        center_frequency = center_frequency * 1073.4

    return center_frequency