bundles / scipy latest / scipy / stats / _distribution_infrastructure / MonotonicTransformedDistribution
ABCMeta
scipy.stats._distribution_infrastructure:MonotonicTransformedDistribution
Signature
def MonotonicTransformedDistribution ( X , / , * args , g , h , dh , logdh = None , increasing = True , repr_pattern = None , str_pattern = None , ** kwargs ) Members
Summary
Distribution underlying a strictly monotonic function of a random variable
Extended Summary
Given a random variable ; a strictly monotonic function , its inverse , and the derivative magnitude :math: |h'(u)| = \left| \frac{dh(u)}{du} \right|, define the distribution underlying the random variable .
Parameters
X: `ContinuousDistribution`The random variable .
g, h, dh: callableElementwise functions representing the mathematical functions , , and
logdh: callable, optionalElementwise function representing . The default is
lambda u: np.log(dh(u)), but providing a custom implementation may avoid over/underflow.increasing: bool, optionalWhether the function is strictly increasing (True, default) or strictly decreasing (False).
repr_pattern: str, optionalA string pattern for determining the __repr__. The __repr__ for X will be substituted into the position where
***appears. For example:"exp(***)"for the repr of an exponentially transformed distribution The default isf"{g.__name__}(***)".str_pattern: str, optionalA string pattern for determining
__str__. The__str__for X will be substituted into the position where***appears. For example:"exp(***)"for the repr of an exponentially transformed distribution The default is the valuerepr_patterntakes.
Aliases
-
scipy.stats._distribution_infrastructure.MonotonicTransformedDistribution