def __cdf_percentile(self, params, percentile, backscatter_model):
        mode = params[0]
        k = params[1]
        offset = params[2]
        if backscatter_model == RadarHistogram.BACKSCATTER_MODEL_GAUSSIAN:
            return scipy.special.erfinv(percentile / 0.5 - 1) * k * math.sqrt(2) + mode
        theta = (mode - offset) / (k - 1)
        v = scipy.special.gammaincinv(k, percentile) * theta + offset
        return v
dataset/ETHPy150Open nasa/CrisisMappingToolkit/cmt/radar/histogram.py/RadarHistogram.__cdf_percentile/original