#NEWLINE# def test_cdf_ppf_roundtrip( self ) : #NEWLINE# #INDENT# q = np . r_ [ ( np . logspace ( 1e-12 , 0.01 , base = 0.1 ) , np . linspace ( 0.01 , 1 , 30 , endpoint = False ) , ( 1.0 - np . logspace ( 1e-12 , 0.01 , base = 0.1 ) ) ) ] #NEWLINE# for c in [ 1e-08 , ( - 1e-18 ) , 1e-15 , ( - 1e-15 ) ] : #NEWLINE# #INDENT# assert_allclose ( stats . genpareto . cdf ( stats . genpareto . ppf ( q , c ) , c ) , c , atol = 1e-15 )