def probability(self, h, s, v, hOff):
        h -= hOff
        hWeight = float(self.meanSqSat) / (max(self.meanSqHue, 1))
        vWeight = float(self.meanSqVal) / (max(self.meanSqVal, 1))
        sWeight = 1.

        weightSum = hWeight + sWeight + vWeight
        hWeight = hWeight / weightSum
        sWeight = sWeight / weightSum
        vWeight = vWeight / weightSum

        hWeight = 1.
        sWeight = vWeight = 0.

        devsH = ((h - self.meanHue) ** 2) / max(1., self.meanSqHue)
        devsS = ((s - self.meanSat) ** 2) / max(1., self.meanSqSat)
        devsV = max(1., self.meanSqVal) / ((v - self.meanVal) ** 2)

        prob = 0
        prob += hWeight * (e ** (-abs(devsH)))
        prob += sWeight * (e ** (-abs(devsS)))
        prob += vWeight * (e ** (-abs(devsV)))

        return prob
dataset/ETHPy150Open bluquar/cubr/coloranalytics.py/Profile.probability/swapped operands of `/`