Skip to content

Commit

Permalink
Remove inheritance of object for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Jun 13, 2024
1 parent 2426880 commit a487c5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tableone/modality.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def least_concave_majorant_sorted(x, y, eps=1e-12):
return np.array(i)


class KernelDensityDerivative(object):
class KernelDensityDerivative:
"""
Kernel density derivative estimator.
Expand Down Expand Up @@ -1302,7 +1302,7 @@ def gamma(beta): return 2*beta*betafun(beta-1./2, 1./2)**2 - d_hat
return RefStudentt(beta)


class RefGaussian(object):
class RefGaussian:
"""
Reference Gaussian distribution for generating random samples.
Expand All @@ -1322,7 +1322,7 @@ def sample(self, n):
return np.random.randn(n)


class RefBeta(object):
class RefBeta:
"""
Reference Beta distribution for generating random samples, parameterized by a shape parameter.
Expand All @@ -1348,7 +1348,7 @@ def sample(self, n):
return np.random.beta(self.beta, self.beta, n)


class RefStudentt(object):
class RefStudentt:
"""
Reference Student's t distribution for generating random samples, parameterized by a degrees of freedom parameter.
Expand Down

0 comments on commit a487c5c

Please sign in to comment.