(self)
return Lambda(z, inverse_cdf[0])
Inverse of the CDF

        Used by sample
Inverse of the CDF
Inverse of the CDF
def _inverse_cdf_expression(self):
        """ Inverse of the CDF

        Used by sample
        """
        x, z = symbols('x, z', real=True, positive=True, cls=Dummy)
        # Invert CDF
        try:
            inverse_cdf = solve(self.cdf(x) - z, x)
        except NotImplementedError:
            inverse_cdf = None
        if not inverse_cdf or len(inverse_cdf) != 1:
            raise NotImplementedError("Could not invert CDF")

        return Lambda(z, inverse_cdf[0])
def _inverse_cdf_expression ( self ) : x , z = symbols ( 'x, z' , real = True , positive = True , cls = Dummy ) # Invert CDF try : inverse_cdf = solve ( self . cdf ( x ) - z , x ) except NotImplementedError : inverse_cdf = None if not inverse_cdf or len ( inverse_cdf ) != 1 : raise NotImplementedError ( "Could not invert CDF" ) return Lambda ( z , inverse_cdf [ 0 ] )