Skip to content

Commit 0021f43

Browse files
committed
clean up the class structure
1 parent f309b1d commit 0021f43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

probscale/probscale.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,16 @@ def transform_non_affine(self, q):
205205
prob = self.dist.cdf(q) * self.factor
206206
return prob
207207

208+
class InvertedProbTransform(_ProbTransformMixin):
209+
def transform_non_affine(self, a):
210+
return self.dist.cdf(a) * self.factor
211+
212+
213+
class InvertedProbTransform(_ProbTransformMixin):
214+
def transform_non_affine(self, q):
215+
prob = self.dist.cdf(q) * self.factor
216+
return prob
217+
208218
def inverted(self):
209219
return ProbTransform(self.dist, as_pct=self.as_pct, nonpos=self.nonpos)
210220

0 commit comments

Comments
 (0)