def _pdf(self, x, c, d):
        u = 2 / (d - c + 1)

        condlist = [x < c, x <= d, x > d]
        choicelist = [u * x / c, u, u * (1 - x) / (1 - d)]
        return np.select(condlist, choicelist)
dataset/ETHPy150Open scipy/scipy/scipy/stats/_continuous_distns.py/trapz_gen._pdf/original