import math


def normalizationFactor(NumFilters, m):
    """
    Intermediate computation used by mfcc function.
    Computes a normalization factor
    """
    normalizationFactor = 0

    if m == 0:
        normalizationFactor = math.sqrt(1.0 / NumFilters)
    else:
        normalizationFactor = math.sqrt(2.0 / NumFilters)

    return normalizationFactor