Subclassing scipy.stats.rv_continuous for truncated distribution
I would like to create a random variable from a truncated complementary error function. For this I want to subclass scipy.stats.rv_continuous. I have checked Subclassing scipy’s continuous distributions and written the following code using Python 3.8.5: