def is_regular(self, rtol: float = 1.e-5, atol: float = 1.e-8) -> bool:
        """Whether all bins have the same width.

        Parameters
        ----------
        rtol, atol : numpy tolerance parameters
        """
        return np.allclose(np.diff(self.bins[1] - self.bins[0]), 0.0, rtol=rtol, atol=atol)
Whether all bins have the same width.

        Parameters
        ----------
        rtol, atol : numpy tolerance parameters