def longRunLowGrayLevelEmphasis(self, P_glrl, ivector, jvector, sumP_glrl, meanFlag=True):
        try:
            lrlgle = numpy.sum(
                numpy.sum(((P_glrl * (jvector ** 2)[None, :, None]) / ((ivector ** 2)[:, None, None])), 0), 0) / (
                     sumP_glrl[None, None, :])
        except ZeroDivisionError:
            lrlgle = 0
        if meanFlag:
            return (lrlgle.mean())
        else:
            return lrlgle
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/FeatureExtractionLib/TextureGLRL.py/TextureGLRL.longRunLowGrayLevelEmphasis/original