@classmethod
def pctNemaUnbalance(cls, Vph):
    """@return Nema unbalance"""
    VMag = [None] * 3
    _0 = True
    i = 0
    while True:
        if _0 is True:
            _0 = False
        else:
            i += 1
        if not i < 3:
            break
        VMag[i] = Vph[i].abs()
    VAvg = 0.0
    _1 = True
    i = 0
    while True:
        if _1 is True:
            _1 = False
        else:
            i += 1
        if not i < 3:
            break
        VAvg = VAvg + VMag[i]
    VAvg = VAvg / 3.0
    maxDiff = 0.0
    _2 = True
    i = 0
    while True:
        if _2 is True:
            _2 = False
        else:
            i += 1
        if not i < 3:
            break
        maxDiff = cls.Math.max(maxDiff, cls.Math.abs(VMag[i] - VAvg))
    if VAvg != 0.0:
        return maxDiff / VAvg * 100.0
    else:
        return 0
