def parameters_changed(self):
        self.order = np.argsort(self.breaks)*1
        self.reverse_order = np.zeros_like(self.order)
        self.reverse_order[self.order] = np.arange(self.order.size)

        self.sorted_breaks = self.breaks[self.order]
        self.sorted_values = self.values[self.order]

        self.grads = np.diff(self.sorted_values)/np.diff(self.sorted_breaks)
dataset/ETHPy150Open SheffieldML/GPy/GPy/mappings/piecewise_linear.py/PiecewiseLinear.parameters_changed/original