+
    0i k             
       (   ^ RI t^ RIt^ RIt^ RIHt ^ RIt^ RIHt ^ RI	t	^ RI
HtHt ^ RIHtHtHtHt ^ RIHu Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHtH t  ^ RI!H"t"H#t#H$t$H%t%H&t&H't'H(t(H)t)H*t*H+t+ ^ RI,H-t-H.t.H/t/ ^ RI,H0t0 ^ RIH1t1H2t2H3t3H4t4  ! R R4      t5R8R lt6]-]1]2]3]..t7]4.t8]7]8,           t9 ! R R4      t:R t;R t<R t=R t>R t?R t@R tA]	P                  P                  R]134      ]	P                  P                  R]D! 4       R9.4      ]	P                  P                  R]D! 4       R:.4      ]	P                  P                  RR .4      ]	P                  P                  R!]P                  P                  ]P                  ]P                  .4      R" 4       4       4       4       4       tIR# tJR$ tKR% tLR& tM ! R' R(4      tN ! R) R*4      tO ! R+ R,4      tP ! R- R.4      tQ ! R/ R04      tR ! R1 R24      tS ! R3 R4]'4      tT ! R5 R64      tUR7 tVR# );    N)deepcopy)inf)assert_allcloseassert_equal)
strategiesgivenreproduce_failuresettings)special)stats)_kolmogorov_smirnov)kolmogn)qmc)distcontdistdiscrete)
_Domain_RealInterval
_Parameter_Parameterization_RealParameterContinuousDistributionShiftedScaledDistribution_fiinfo_generate_domain_supportMixture)StandardNormal_LogUniform_Gamma)DiscreteDistribution)NormalLogisticUniformBinomialc                     a  ] tR t^t o ]P
                  P                  R4      tR t]	P                  P                  R]P                  ^
^
RR7      ]P                  ) ]P                  .4      R 4       t]	P                  P                   ]! ]P&                  ! ^^ R7      ]P*                  ! 4       ]P*                  ! 4       ]P,                  ! 4       R7      R 4       4       t]	P                  P                  R	]! ]P4                  ! R
R.^R7      4      4      ]	P                  P                  RRR.4      R 4       4       t]	P                  P                  R]P                  ) ]P                  RR
R3R.4      R 4       t]	P                  P                   ]! ]P:                  ! ]P<                  ! RR7      ]P>                  ! RR7      ]P@                  ! ]! ]!PD                  4      4      4      ]P:                  ! ]P<                  ! RR7      ]P>                  ! RR7      ]P@                  ! ]! ]!PD                  4      4      4      ]P*                  ! 4       ]P*                  ! 4       R7      R 4       4       t#R t$Rt%V t&R# )Test_RealIntervall   @x	 c                    \        RR7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  \
        4       RRR4       R#   + '       g   i     R# ; i)a	endpointsz0The endpoints of the distribution are defined...matchNr'   b)r   pytestraises	TypeErrorget_numerical_endpointsdict)selfdomainmessages   &  _/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/stats/tests/test_continuous.pytest_ivTest_RealInterval.test_iv   s?    4D]]9G44**40 5444s   AA$	xsizec                    \         P                  ) \         P                  r2\        W#3RR7      p\	        VP                  V4      W!8  W8*  ,          4       R# )Fr)   	inclusiveN)FT)npr   pir   r   contains)r3   r9   r'   r-   r4   s   &&   r6   test_contains_simple&Test_RealInterval.test_contains_simple%   s?     w1!=IV__Q'!%AF);<    
num_shapesmin_side)shapesinclusive_ainclusive_bdatac           	     H   Vw  rVVw  rxp	\        R R R^R7      p
\        R R ^RR7      pVP                  \        P                  ! \        P                  ! 4       WzR7      4      pVP                  \        P                  ! \        P                  ! 4       WR7      4      pW,
          p\
        P                  ! \
        P                  ! W,
          V^
4      \
        P                  ! W^
4      \
        P                  ! WV,           ^
4      .4      p\        RW#3R7      pVP                  \        R\        4       R7      \        R\        4       R7      4       VP                  V\        WR7      4      pV'       d   R	MR
pV'       d   R	MR
p\        RV RV R24      p\        VV4       R# )Fg     @@)	allow_nanallow_infinity	min_value	max_value)elementsr'   r-   r=   r4   r,   z<=<z(a z	 x) & (x z b)Ng     @)r2   drawnpstarraysfloating_dtypesr?   concatenatelinspacer   define_parametersr   rA   evalr   )r3   rH   rI   rJ   rK   input_shapesresult_shapeshape_ashape_bshape_x
a_elements
b_elementsr'   r-   dr9   r4   resleft_comparisonright_comparisonrefs   &&&&&                r6   test_containsTest_RealInterval.test_contains-   si    &,"$0!' E%$(A7
E%$%6
IIdkk$"6"6"8")@ AIIdkk$"6"6"8")@ A ENNBKKQ3KKb1KKQ335 6 (3'AC  MO!L!/MO!L	N ooa0 #.$3#.4CS)3C2DCHIS#rD   r>   TF)repeatza,bc           	     6   R  R 3p\        WAR7      p\        P                  ! V^V,          ,
          ^,          W#,
          ^,          V^,          W#,           ^,          V^V,          ,           ^,          .4      pVP                  V\	        W#R7      4      pW#,
          ^,          W#,           ^,          3pWP                  \	        W#R7      4      8X  g   Q hVw  rV^ ,          '       d   W8*  MW8  pV^,          '       d   Wj8*  MWj8  pW,          p\        W}4       R# )c                      W,
          ^,          #     r,   s   &&r6   <lambda>DTest_RealInterval.test_contains_function_endpoints.<locals>.<lambda>^   s
    15A+rD   c                      W,           ^,          # rm   ro   r,   s   &&r6   rp   rq   ^   s
    QUaKrD   r=   r,   N)r   r?   asarrayrA   r2   r1   r   )r3   r>   r'   r-   r)   r4   r9   rd   numerical_endpointsalphabeta
above_leftbelow_rightrg   s   &&&&          r6    test_contains_function_endpoints2Test_RealInterval.test_contains_function_endpointsZ   s     ./GH	HJJQqS!aeQY!aeQYQqS!LMooa0 !{QUaK8"&D&DTA^&TTTT)#,Q<<UZUY
#,Q<<aiQX&SrD   casez(-\infty, \pi]c                n    \        VR ,          VR,          R7      p\        V4      V^,          8X  g   Q hR# ):Nrn   N:rn      Nr=   N)r   str)r3   r{   r4   s   && r6   test_strTest_RealInterval.test_strm   s.    
 bT#YG6{d1g%%%rD   )rM   L)whitelist_categories)r'   r-   rI   rJ   c                
   \         P                  P                  W4      p\         P                  P                  W"4      pV'       d   R MRpV'       d   RMRp\        W3W43R7      pV V RV V 2p\	        V4      V8X  g   Q hR# )[(])r=   , N)r   symbolsgetr   r~   )	r3   r'   r-   rI   rJ   left_bracketright_bracketr4   rg   s	   &&&&&    r6   	test_str2Test_RealInterval.test_str2u   s}     OO%OO%)ss*!(3'ACqcA3}o66{c!!!rD   c                n    \        RR7      p\        RR7      pVP                  VP                  Jg   Q hR# )r   r(   Nr      )r   r   )r3   domain1domain2s   &  r6   test_symbols_gh22137&Test_RealInterval.test_symbols_gh22137   s.      &1&1goo555rD   ro   N)rn      r}   r   r   r   )r'      TFz[a, 5))'__name__
__module____qualname____firstlineno__r?   randomdefault_rngrngr7   r.   markparametrizeuniformr   r@   rB   slowr   rU   mutually_broadcastable_shapesr   booleansrK   rh   listitproductry   r   one_ofdecimals
characterssampled_fromr   r   r   r   __static_attributes____classdictcell____classdict__s   @r6   r%   r%      s6    
))


0C1 [[S3;;r2I;#F$&FF7BEE#3 4=4= [[
$44AN!**,!**,!#&	# 
&P [[[$rzz4-PQ/R*ST[[UVV$45 6 U" [[V
&&"%%&78'& &	& [[
Ze,37W__ 568 e,37W__ 568 "**,!**,

"
 
"6 6rD   r%   c                    V P                  4       pV^ 8  d~   VP                  \        P                  ! ^ V^,
          R7      4      pV P	                  V4      pVP                  \
        P                  ! VVR7      4      w  rV P                  WVVR7      p
MV P                  VR7      p
\        4       p	VP                  \
        P                  ! V	VR7      4      pV
P                  P                  WP                  W2RR7      p\        P                  ! W4      pVP                  \
        P                  ! VVR7      4      pV
P                  P                  WP                  W2RR7      p\        P                  ! W4      p\        RR4      p\        RVR	7      pVP                  WVR
7      p\        P                   ! RRR7      ;_uu_ 4        \        P"                  ! V4      pRRR4       WVVXWV3#   + '       g   i     L; i)r   )rP   rE   )r   proportionsi_parameterizationr   )rG   typical)parameter_valuesr   r   regionprR   )r   r   ignoredivideinvalidNr   TT)_num_parameterizationsrT   r   integers_num_parametersrU   r   _drawtuplebroadcastable_shapes	_variable_parametersr?   broadcast_shapesr   r   errstatelog)familyrK   r   r   rG   n_parameterizationsin_parametersrH   r]   distx_shaper9   x_result_shapey_shapeyxy_result_shapep_domainp_varr   logps   &&&&&                r6   draw_distribution_from_familyr      s    !779QIIj))!7J17LMN--a0#yy..,8@B C ||F/0  2 |||$w ii11,;CE FGG6F6F(3Y 	 	PA((?Nii11.;CE FGG6F6F(3Y 	 	PA))'BOV\2H3x0E

7
=A	Hh	7	7vvay 
8 Aq$oMM 
8	7s   G..G>	c                     a  ] tR t^t o ]P
                  P                  ^<4      ]! ^R7      ]P
                  P                  R]	4      ]
! ]P                  ! 4       ]P                  ! ^ R7      R7      R 4       4       4       4       t]P
                  P                  ^
4      ]P
                  P                  R]	4      ]P
                  P                  RRRR	0R
3RRR	0R
3RR0R
3RR0R
3RR0R
3RR0R
3RR0R
3RR0R
3RR0R3RR0R3R0 R,mR3R0 R,mR3R0 R,mR3R0 R,mR3RRR0R3R RR0R!3.4      ]! ^R7      ]
! ]P                  ! 4       ]P                  ! ^ R7      R7      R" 4       4       4       4       4       tR# t]P
                  P                  R$RR.4      R% 4       t]P
                  P                  R$RR.4      R& 4       tR' tR( tR) t]P
                  P                  R$RR.4      R* 4       tR+tV tR
# )-TestDistributions)max_examplesr   rO   rK   seedc           	        \         P                  P                  V4      pRp\        WWE4      pVw  rxrrrVP	                  \
        P                  ! ^ ^ ^R7      4      p\         P                  ! RRR7      ;_uu_ 4        \        V4       \        W|4       \        VRWV4       \        P                  ! ^VR7      p\        VRWV4       RRR4       R#   + '       g   i     R# ; i)ffffff?)min_dimsrG   max_sider   r   r   samplerc   r   Nr   皙?r   r   )r?   r   r   r   rT   rU   array_shapesr   check_supportcheck_moment_funcscheck_sample_shape_NaNsr   Halton)r3   r   rK   r   r   r   tmpr   r9   r   r   r   r]   r   r   sample_shapeqrngs   &&&&             r6   test_support_moments_sample-TestDistributions.test_support_moments_sample   s    
 ii##D) ++F#KMPJt>yy!2!2A<>"@ A [[(;;$t2#D(LPST::,D#D(LPTU <;;;s   =ACC#	zfunc, methods, argentropylog/exp
quadratureN
logentropymedianicdfmodeoptimizationmeancachevarianceskewnesskurtosispdfr9   logpdflogcdf
complementcdflogccdfccdfilogccdf	inversionr   iccdfr   c           
     \   V\         8X  d   VR 8X  d   \        P                  ! R4       \        P                  P                  V4      pRp\        WWx4      p	V	w  rrrppRVRVRV/p\        P                  ! RRRR7      ;_uu_ 4        Vf   \        WRW4       MVV9   d   \        WVV,          VV4       RRR4       VR8X  d0   \        V
P                  4       ^,          V
P                  4       4       \        P                  ! RRRR7      ;_uu_ 4        \        V
\        4      '       gR   VR	8X  d#   R
0p\        V
RWVV4       \        V
RWVV4       M(VR8X  d"   R0p\        V
RWVV4       \        V
RWVV4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)r   z'Mode is not unique; `method`s disagree.r9   r   r   r   )r   r   overNr   r  r   FTr  additionr   )r"   r.   skipr?   r   r   r   r   check_dist_funcr   standard_deviationr   
isinstancer   
check_cdf2check_ccdf2)r3   r   rK   r   funcmethodsargr   r   r   r   r9   r   r   r   r]   r   r   argss   &&&&&&&            r6   
test_funcsTestDistributions.test_funcs   sr   . WKKABii##D) ++F#KMPJt>?QQ*[[(JJ{D,HDI~wO	 K :D335q8$--/J [[(JJd$=>>5=+nGtUA/7KtT1'JV^)lGeQ?GLdA/7K KJ KJ KJJs   /FA(FF	F+	c                     ^ RI Hp \        RRR7      pTP	                  4       pY1P                  4       8X  g   Q hR#   \         d     R# i ; i)r   N              ?r,   )matplotlib.pyplotpyplotImportErrorr"   plotgca)r3   pltXaxs   &   r6   	test_plotTestDistributions.test_plot  sG    	+ bBVVXWWY  		s   = AAmethod_namec                   \         P                  ! 4       pR Vn        \        P                  ! RR.4      p\        W!4      p\        VRV,           4      pV! VRR7      pV! VRR7      pV! VRR7      p\        V^,          V^,          4       V^ ,          V^ ,          8w  g   Q h\        V^ ,          V^ ,          VP                  R7       R	# )
-q=-C6?MbP?r   formulamethodcomplement_safer   rtolNr   r    tolr?   rs   getattrr   r   )	r3   r#  r  r   r  ifuncr9   p1p2s	   &&       r6   test_complement_safe&TestDistributions.test_complement_safe   s    LLNJJd|$q&3{?+!I&!-.!L)RUBqE"!u1~~1qt!%%0rD   c                   \         P                  ! 4       pR Vn        \        P                  ! RR.4      p\        W!4      p\        VRV,           4      pV! VRR7      pV! VRR7      p\        V^,          V^,          4       V^ ,          V^ ,          8w  g   Q h\        V! V^ ,          4      V^ ,          VP                  R7       R# )	r%  r&  r'  r   r+  r)  r   r,  Nr.  )r3   r#  r  r   r  r1  x1x2s   &&      r6   test_icomplement_safe'TestDistributions.test_icomplement_safe.  s    LLNJJd|$q&3{?+1./1\*RUBqE"!u1~~RUQqT6rD   c                2   \         P                  ! 4       pR Vn        . ROp. ROpVP                  W#RR7      pVP                  W#RR7      pVP                  W#RR7      p\	        We4       \        WTVP                  R7       \        P                  ! . R	O4      p\        P                  ! . R
O4      pVP                  ^ 4      W2,
          ,          pVP                  W#RR7      pVP                  W#RR7      p\	        V^ 4       \        WTVP                  R7       R# )r%  r   r)  subtraction_safesubtractionr,  N)
      )r?  r>  rA  r@  )#BǻO
㒻#B;O
;rB  )rC  rB  rE  rD  rD  )	r   r    r/  r  r   r   r?   rs   r   )r3   r  r9   r   p0r2  r3  s   &      r6   test_subtraction_safe'TestDistributions.test_subtraction_safe;  s    LLN UU1U-UU1 2U3UU1U.RQUU+ JJ=>JJ<= UU1Xqs^UU1 2U3UU1U.RQUU+rD   c                    ! R  R\         P                  4      pV! . R
OR7      p\        P                  ! RR7      ;_uu_ 4        VP	                  RR7      pVP	                  RR7      pRRR4       VP	                  R	R7      p^ R.p\        P
                  ! XV,          4      P                  4       '       g   Q hX^,          V^,          8X  g   Q h\        W6,          WV,          4       R#   + '       g   i     L; i)c                   2   a a ] tR tRt oV 3R ltRtVtV ;t# )7TestDistributions.test_logentropy_safe.<locals>._NormaliU  c                   < \         P                  ! \        SV `  ! R/ VB 4      p^ V^ &   \         P                  VR&   V# )r   ro   )r?   rs   super_entropy_formular   )r3   paramsout	__class__s   &, r6   rO  HTestDistributions.test_logentropy_safe.<locals>._Normal._entropy_formulaV  s9    jj!9!CF!CDA&&B
rD   ro   )r   r   r   r   rO  r   r   __classcell__rR  r   s   @@r6   _NormalrK  U  s      rD   rV  sigmar   r   logexp_safer)  logexpNr   r   rn   r   rM  )r   r    r?   r   r   isinfallr   )r3   rV  r  res1res2rg   i_fls   &      r6   test_logentropy_safe&TestDistributions.test_logentropy_safeS  s    	ell 	 )$[[))<<}<5D<<x<0D * ll,l/2wxxT
#''))))Aw$q'!!! 	TZ+ *)s   %C++C;	c                   \         P                  ! . R	OR7      p. R
Op. ROp\        P                  ! RR7      ;_uu_ 4        VP	                  W#RR7      pVP	                  W#RR7      pRRR4       VP	                  W#RR7      p^ R.p\        P
                  ! XV,          4      P                  4       '       g   Q hX^,          V^,          8X  g   Q h\        WG,          Wg,          4       R#   + '       g   i     L; i)r   rW  r   rY  rZ  r)  r[  Nr   r\  )r   ,  )irn   -  rM  )r   r    r?   r   r   r]  r^  r   )r3   r  r9   r   r_  r`  rg   ra  s   &       r6   test_logcdf2_safe#TestDistributions.test_logcdf2_safeh  s    LLy)[[))88A87D88A82D * hhqLh12wxxT
#''))))Aw$q'!!! 	TZ+ *)s   'C++C;	c                   \         P                  ! ^R7      pVR8X  d   R^.MR^.p\        W!4      p\        P                  ! RR7      ;_uu_ 4        V! VRR7      pV! VRR7      pR	R	R	4       V! VR
R7      pX^ ,          V^ ,          8X  g   Q hV^ ,          X^ ,          8w  g   Q hV^,          V^,          8X  g   Q hV^,          V^,          8w  g   Q hR	#   + '       g   i     Lx; i)rn   rW  r   rg  r   rY  rZ  r)  r[  Nr   re  )r   r    r0  r?   r   )r3   r#  r  r9   r  r_  r`  rg   s   &&      r6   test_logexp_safe"TestDistributions.test_logexp_safex  s     LLq!$0T1IsAhq&[[))-0D(+D * 1\*Aw#a&   Aw$q'!!!Aw$q'!!!Aw#a&    *)s   CC&	ro   >   r   r   r   )r   r   r   r   r.   r   	fail_slowr
   r   familiesr   r   rK   r   r   r  r!  r4  r9  rG  rb  rh  rk  r   r   r   s   @r6   r   r      s\    [[22[[Xx0

!
(;(;a(HIV J 1  V" [[2[[Xx0[[1(9l*CTJ+i-FM'&48%'7>%y$7)G9d;)G9d;)G9d;$yk37')c:')PRUV$&MsS(*QSVW%'NPST)L++FO&{(CSI !$ 2

!
(;(;a(HIL J %! 1 ,LB [[]UFO<1 =1 [[]UFO<
7 =
7,0,*,  [[]Xy,AB! C!rD   r   c                    W#,           pVR 8X  d   V P                   pR0pV P                  RV R24      '       d2   \        V\        P                  4      '       g   VP                  R4       V EFg  pX! W(VR7      p	\        P                  ! \        V 4      V	P                  4      p
\        V	P                  V4       \        P                  P                  V	P                  V P                  4       VR8X  d   \        P                  ! V	4      '       g   Q h\        P                  ! \        P                   ! W,          4      4      '       g   Q h\        W( ,          \        P"                  4       V! W(^*R7      pV! W(^*R7      p\        V \$        4      '       g3   \        P&                  ! \        P(                  ! W4      4      '       d   Q h\        W4       EKj  	  R# )r   inverse_transform__formular(  )r*  r   Nro   )r   
_overridesr  r   	QMCEngineaddr?   broadcast_toget_valid_parametersshaper   testingdtype_dtypeisscalarr^  isfinitenanr   anyequal)r   fnamer   r]   r   
full_shapesample_methodr  r*  rd   valid_parameterssample1sample2s   &&&&&        r6   r   r     sW   ,J"#G5'*++JsCMM4R4RILSA??+?+E+.996SYY
+


		4;;7
 ;;s####vvbkk#"789999S*+RVV4DD$ 455 vvbhhs45555W&/ rD   c                 J   V P                  4       w  r\        V R RV4       \        V R RV4       VP                  V P                  8X  g   Q hVP                  V P                  8X  g   Q hVP                  V P
                  8X  g   Q hVP                  V P
                  8X  g   Q hR# )supportN)r  check_nans_and_edgesrx  _shaperz  r{  )r   r'   r-   s   &  r6   r   r     s    <<>DAy$2y$277dkk!!!77dkk!!!77dkk!!!77dkk!!!rD   c                    Vf   \        4       MV3pVP                  4       pRV9   d=   \        P                  ! \        4      ;_uu_ 4        \        W4      ! VRR/  R R R 4       \        W4      ! V!  p\        WW&4       RR/pVR9   d   RR/pMVR9   d   RR/pMVR9   d   RR/pV P                  RV R	24      '       d   VP                  R
4       \        P                  P                  VP                  V4       V\        4       8X  d   \        P                  ! V4      '       g   Q hV EF  p\        W4      ! VRV/ p	RV9   dL   \        P                  P                  ! \        P                  ! V	4      \        P                  ! V4      3/ VB  M!\        P                  P                  ! W3/ VB  \        P                  P                  V	P                   VP                   4       \        P                  P                  V	P                  V4       V\        4       8X  g   K  \        P                  ! V	4      '       d   EK  Q h	  R #   + '       g   i     EL; i)Nr   r*  atolV瞯<ư>r-  gH׊>rq  rr  r(  r   >   r   logmeanr   logskewness>   r   >   r   )r   copyr.   r/   NotImplementedErrorr0  r  rs  ru  r?   ry  r   rx  r|  r   exprz  )
r   r  r  r]   r  r  rg   tol_overrider*  rd   s
   &&&&&     r6   r  r    s    k57vDllnG' ]].//D $7w7 0 $

%Cc/ E?L>>	(	 ~	*	~5'*++IJJCII|4 uw{{3d"D88E>JJ&&rvvc{BFF3K 7)57 JJ&&s@<@ 	

		3995


		<857";;s#### 7 0//s   II	c                    VP                  4       pV'       d   V P                  R 4      '       d   VP                  R4       V P                  R4      '       g   V P                  R4      '       d   VP                  R4       V P                  R4      '       g   V P                  R4      '       d   VP                  R4       MV P                  R4      '       d   VP                  R4       V P                  R4      '       g   V P                  R4      '       d   VP                  R4       V P                  R4      '       g   V P                  R4      '       d   VP                  R4       V P                  V4      V P                  V4      ,
          p\        P
                  P                  VP                  V4       V\        4       8X  d   \        P                  ! V4      '       g   Q hV EF  p\        V \        4      '       dt   R	p\        P                  ! \        VR
7      ;_uu_ 4        V'       d(   \        P                  ! V P!                  W#VR7      4      MV P                  W#VR7      p	RRR4       K  V'       d(   \        P                  ! V P!                  W#VR7      4      MV P                  W#VR7      p	\        P
                  P#                  WRR7       V'       d=   \        P
                  P                  V	P$                  VR,           P$                  4       M4\        P
                  P                  V	P$                  VP$                  4       \        P
                  P                  V	P                  V4       V\        4       8X  g   EK  \        P                  ! V	4      '       d   EK  Q h	  R#   + '       g   i     ELO; i)_logcdf2_formular(  _logcdf_formula_logccdf_formular=  _cdf_formula_ccdf_formular   _cdf2_formulaUTwo argument cdf functions are currently only supported for continuous distributions.r*   r)  N+=r                  )r  rs  ru  r  r?   ry  r   rx  r   r|  r  r   r.   r/   r  r  r   r   rz  
r   r   r9   r   r]   r  rg   r*  r5   rd   s
   &&&&&&    r6   r  r    s}    llnG
??-..KK	"??,--AS1T1TKK&OON++???33KK	"???++KK	"??>**dooo.N.NKK&OO-..??#566KK	"
((1+
#CJJCII|4uw{{3d0113G2'BBCFrvvdkk!vk>? HHQ&H9  C ;>rvvdkk!vk67HHQ&H1 	


""3%"8JJ##CIIb/?/?@JJ##CIIsyy9


		<857";;s#####  CBBs   &AN//O c                    VP                  4       pT P                  R V'       d   RMR R24      '       d   VP                  R4       V P                  V4      V P	                  V4      ,           p\
        P                  P                  VP                  V4       V\        4       8X  d   \
        P                  ! V4      '       g   Q hV EF~  pRp\        V \        4      '       dr   \        P                  ! \        VR7      ;_uu_ 4        V'       d(   \
        P                   ! V P#                  W#VR7      4      MV P	                  W#VR7      p	RRR4       K  V'       d(   \
        P                   ! V P#                  W#VR7      4      MV P	                  W#VR7      p	\
        P                  P%                  WR	R
7       \
        P                  P                  V	P&                  VP&                  4       \
        P                  P                  V	P                  V4       V\        4       8X  g   EK`  \
        P                  ! V	4      '       d   EK  Q h	  R#   + '       g   i     EL; i)rq  r    ccdf2_formular(  r  r*   r)  Nr  r  )r  rs  ru  r  r  r?   ry  r   rx  r   r|  r  r   r.   r/   r  r  r  r   rz  r  s
   &&&&&&    r6   r  r    s    llnGC5R0>??I
((1+		!
$CJJCII|4uw{{3/d0112'BBDGrvvdll1l?@ IIa6I:  C <?rvvdll1l78IIa6I2 	


""3%"8


		3995


		<857";;s####  CBBs   AIIc                 ,   \        V 4      pVR9   d   \        RRR7      pM2VR9   d   \        \        ) ^ 3RR7      pMV P                  P                  p\        WV4      p\        P                  ! V.VO5!  vrFVw  rxrWt,          p\        W4( ,          \        P                  4       \        W:,          \        P                  4       V P                  4       w  r\        P                  ! WP                  4      p\        P                  ! WP                  4      pV	R	8H  V,          pV	^8H  V,          pVR	8H  V,          pV^8H  V,          p\        V \        4      pVR
9   d   \        W>,          \        P                  ) 4       \        W?,          \        P                  ) 4       V'       g   \        P                  ) M\        P                  p\        VVV( ,          ,          V4       \        VVV( ,          ,          V4       EM VR9   dw   \        W>,          ^ 4       \        W?,          ^ 4       V'       g   ^ M\        P                  p\        VVV( ,          ,          V4       \        VVV( ,          ,          V4       EMVR9   d_   V'       gW   \        W>,          \        ) 4       \        W?,          ^ 4       \        VV,          \        ) 4       \        VV,          ^ 4       EM>VR9   dU   V'       gM   \        W>,          ^ 4       \        W?,          ^4       \        VV,          ^ 4       \        VV,          ^4       EMVR9   d_   V'       gW   \        W>,          ^ 4       \        W?,          \        ) 4       \        VV,          ^ 4       \        VV,          \        ) 4       EM~VR9   dU   V'       gM   \        W>,          ^4       \        W?,          ^ 4       \        VV,          ^4       \        VV,          ^ 4       EM#VR9   d   V'       g   \        W9R	8H  ,          \        P                  4       \        W9^8H  ,          \        P                  4       \        W8R	8H  ,          WR	8H  ,          4       \        W8^8H  ,          W^8H  ,          4       MVR9   d   V'       g   \        W9R	8H  ,          \        P                  4       \        W9^8H  ,          \        P                  4       \        W8R	8H  ,          WR	8H  ,          4       \        W8^8H  ,          W^8H  ,          4       0 Rmp\        V \        4      '       d   VP                  RR04       VV9  d?   \        P                   ! W;V^ 8H  ,          ,          4      P#                  4       '       g   Q hR# R# )r   r=   r   r   N>   r   r  r   r   >   ilogcdfr  rM  >   r   >   r   >   r   >   r  >   r  >   r  >   r   r  >   r  r  >   r   r  r  r   r  )rw  r   r   r   r4   classify_argr?   broadcast_arraysr   r~  r  rv  rx  r  r   updater}  r^  )r   r  r  rd   r  
arg_domainclassified_args	valid_argendpoint_argoutside_argnan_arg	all_validr'   r-   outside_arg_minusoutside_arg_plusendpoint_arg_minusendpoint_arg_plusis_discreterg   excludes   &&&&                 r6   r  r  =  sK   +D1!!"V|L
	)	)"sdAY,O
^^**
"4j9O)+)<)<=M *O>M*O&4C1I[,I &'0rvv&<<>DA
99%A
99%A$*.>>#q(,<<&",0@@%*.>>T#78K 
S+bffW5S*RVVG4(rvvgbffS+yj893?S*iZ78#>	'	S+Q/S*A."aS+yj893?S*iZ78#>	*	[S+cT2S*A.S+,sd3S*+Q/	'	+S+Q/S*A.S+,a0S*+Q/	+	kS+Q/S*SD1S+,a0S*+cT2	(	;S+Q/S*A.S+,a0S*+Q/	%	%kS*+RVV4S)*BFF3S+,a0B.CDS*+Qq/@-AB	'	'S*+RVV4S)*BFF3S+,a0B.CDS*+Qq/@-ABGG$,--x()G{{3LA,=>?@DDFFFF rD   c                   a a R oRVV 3R llpV 3R lpS P                  4        \        ^4       F  pV! VRRRR7       S P                  VRR	R
7      p\        S RRV4       VP                  V8X  g   Q hV! VRRVRR7       V! VRRWS! VR4      R7       V! VRRWT^ 8H  R7       S P
                  \        P                  8X  g   K  V! VRRVRR7       K  	  S P                  4        S P                  ^ R4       S P                  ^R4       \        ^^4       FY  pS P                  VRR	R
7      pT! TRRTV! VR4      ;'       g
    V! VR4      R7       S P                  VR4       V! VRRV4       K[  	  S P                  4        \        ^4       EF  pV! VRRRR7       S P                  VRR	R
7      pVP                  V8X  g   Q hV! VRRVRR7       V! VRRWS! VR4      R7       V! VRRWT^8*  R7       S P
                  \        P                  8X  d   V! VRRVRR7       S P
                  \        P                  8X  d   V^8X  g"   T! TRRTV! VR4      ;'       g    V^8*  R7       V! VR4      '       d   K  S P                  VR4       V! VRRV4       EK
  	  S P                  4       pS P                  4        S P                  ^ R4       S P                  ^R4       S P                  ^R4       \        ^^4       F  pS P                  VRR	R
7      pT! TRRTV! VR4      ;'       d    \        P                  ! V^ 8H  4      '       * R7       S P                  VR4       V! VRRV\        P                  ! V^ 8H  4      '       * R7       K  	  S P                  ^RR	R
7      pS P                  4        \        ^4       Fx  pV! VRRRR7       S P                  VRR	R
7      Wt^,          ,          ,          pVP                  V8X  g   Q hV! VRRVV! VR4      R7       V! VRRWT^8*  R7       V! VRRV4       Kz  	  \        S \        4      '       d   R# R# )g&.>NTc                 V  < V'       dN   SP                  WVR 7      p\        WSS^
V ,          ,          R7       VP                  VP                  8X  g   Q hR# \        P                  ! \
        4      ;_uu_ 4        SP                  WVR 7       RRR4       R#   + '       g   i     R# ; i)r)  r  N)momentr   rx  r.   r/   r  )orderkindr*  rg   successrd   r  r   s   &&&&& r6   check!check_moment_funcs.<locals>.check  so    ++e&+9CC4E	>:99		)))233E7 4333s   9BB(	c           	         < R V R2pSP                  V4      pV'       g   R# \        SV4      p\        VR\        \        ^4      4      4      pW9   # )_moment_rr  Forders)rs  r0  setrange)r  r  formula_name	overridesr(  r  r   s   &&    r6   has_formula'check_moment_funcs.<locals>.has_formula  sO    !$x0OOL1	$-(CaM:rD   rawr   F)r  r   r)  r  r(  generalquadrature_icdfcentral	transformstandardized	normalize)NNT)reset_cacher  r  r  rx  rR  r   r    r"   r   r?   r  r  r   )	r   r]   r  r  r   rg   r   varr  s	   f&      @r6   r   r     s
    D8 8 	 1Xa/kk!U<k8T8T37yyL(((awT2a	3Au0EFa	3a9>>U\\)!U-sDA  	 	KK9KK91a[kk!U<k8aS!!Y/QQ;q.3Q	SAy!aS)  	 1XaGU3kk!Y|k<yyL(((aGS$7aIsK94MNaIsF;>>U\\)!Y 13E%--/AF !YS%a/;;AF=1e$$KK5!!YS1# & }}H 	KK>"KK>"KK>"1a[kk!Y|k<aK!!^4RRRVVHPQM=R9R	TA~&aK"&&Q:O6OP  ++a<+
8C1Xa%8kk!Y|k<s1u~MyyL(((aC!!^4	6aCa@ac2  $122 	 3rD   r   r   
dist_shaper  r   rng_typec                 l   \         P                  P                  R 4      pV P                  4       pV'       d   V^ 8X  d   \        P
                  ! R4       V P                  W4      pRpV3V,           p	W,           p
VR8X  d   VP                  pV\         P                  P                  8w  d   V! ^VR7      pX! WR7      pVP                  V
8X  g   Q h\        W|^ R7      p\        VP                  ^ ,          VRR7      pR	pVP                  p\         P                  ! W8  4      pVVV,          8  g   Q hR
# )l   MLy z3Distribution can't have a shape without parameters.i   r   r   r   )axisF)r  g{Gz?N)r?   r   r   r   r.   r
  r   r   	Generatorrx  r   r   r;   sum)r   r  r   r  r  r   num_parametersr   nsample_sizesample_array_shaper  r9   	statisticpvaluep_thresholdnum_pvaluesnum_small_pvaluess   &&&&&             r6   test_sample_against_cdfr    s    ))


0C++-Nn)IJ<<
(DA$.K$1299&&&%k+A77(((( $D!4IQWWQZ6FK++Kv34{[8888rD   c           	      \   V P                   p/ pV P                   F  pVP                  VP                  4       K   	  \        P
                  ! V P                  \        R 7      pVP                  4        F  w  rVWR9  d   K  W%,          pVP                  P                  VR7      w  rVP                  P                  w  rV
'       d   W8*  MW8  pY'       d   Wi8*  MWi8  ,          p\        WP                  P                  WaR7      4       WL,          pK  	  \        V( V P                  4       V# )rz  r   )r   _parameterizationsr  
parametersr?   onesr  boolitemsr4   r1   r>   r   rA   _invalid)r   r   r  parameterizationr  namevalue	parameterr'   r-   
a_included
b_includedvalids   &            r6   rw  rw  1  s    ''J 33*556 4 40I'--/!$	
 77- 8 /!*!1!1!;!;
 *	%*:U,,55 6 6 	7 		# 0* )T]]+rD   c                 J   Vf   \         P                  ! V P                  \        R7      p\         P                  ! V P                  \        R7      p\         P                  ! V P                  \        R7      p\         P                  ! V P                  \        R7      pW4WV3# VP                  V P                  R7      w  rx\         P                  ! WxV4      w  rxpVP                  w  rV	'       d   Wq8*  MWq8  pY'       d   W8*  MW8  ,          p\         P                  ! VP                  \        R7      pRWV8H  &   ^WV8H  &   \         P                  ! VP                  \        R7      pRY'       d   W8  MW8*  &   ^Y'       d   W8  MW8*  &   \         P                  ! V4      pWW3# )Nr  r  rM  )r?   r  r  r  zerosr1   r   r  r>   rx  intisnan)r   r  r  
valid_argsendpoint_argsoutside_argsnan_argsr'   r-   r  r  insideonoutsider~  s   &&&            r6   r  r  X  sA   
{WWT[[5
D9xx4888DKKt4,@@--)) . +DA ##A#.IA#'11J%ah17F
JsxCG3F	!''	%BBCxLBCxLhhqwwc*G57GSW256GQW2
((3-Cw##rD   c                  	    ! R  R\         4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V ! ^R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V ! \        P
                  ! . 4      R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V ! . ROR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V ! \        P                  R7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V ! RR7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V ! 4       P                  R4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V ! 4       P                  \        P                  4       RRR4       R	p\        P                  ! \        VR7      ;_uu_ 4        V ! 4       P                  ^R
R7       RRR4        ! R R\         4      pRp\        P                  ! \        VR7      ;_uu_ 4        V! ^R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V! 4        RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V! ^^.. ROR7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V! . RO. ROR7      pVP                  ^^.4       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V! ^\        4       .^^.R7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        V! . RO. ROR7      pVP                  R
R7       RRR4       R#   + '       g   i     EL; i  + '       g   i     ELT; i  + '       g   i     EL0; i  + '       g   i     EL ; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELp; i  + '       g   i     EL=; i  + '       g   i     EL
; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELR; i  + '       g   i     R# ; i)c                   4    ] tR tRt]! R]! 4       R7      tRtR# )#test_input_validation.<locals>.Testiu  r9   rR   ro   N)r   r   r   r   r   r   r   r   ro   rD   r6   Testr  u  s    "3}?	rD   r  z`The `Test` distribution family does not accept parameters, but parameters `{'a'}` were provided.r*   r'   NzAAttribute `tol` of `Test` must be a positive float, if specified.r/  zEArgument `order` of `Test.moment` must be a finite, positive integer.z2Argument `kind` of `Test.moment` must be one of...coconutr  c                       ] tR tRt]! R]! 4       R7      t]! R]! 4       R7      t]! ]]4      .t	]! R]! 4       R7      t
RtR# )$test_input_validation.<locals>.Test2i  crR   rc   r9   ro   N)r   r   r   r   r   r   _p1_p2r   r  r   r   ro   rD   r6   Test2r    s<    S9S9/S9:"3}?	rD   r  zkThe provided parameters `{a}` do not match a supported parameterization of the `Test2` distribution family.zLThe `Test2` distribution family requires parameters, but none were provided.zjThe parameters `{c, d}` provided to the `Test2` distribution family cannot be broadcast to the same shape.)r  rc   zmThe argument provided to `Test2.pdf` cannot be be broadcast to the same shape as the distribution parameters.z$Parameter `c` must be of real dtype.z<Parameter `convention` of `Test2.kurtosis` must be one of...
conventionr\  rM  )r   r.   r/   
ValueErrorr?   rs   r~  r  r   r   r0   objectr   )r  r5   r  r   s       r6   test_input_validationr  t  s   @% @7G	z	1	1q 
2 RG	z	1	1B  
2	z	1	1 
2	z	1	1 
2	z	1	1 
2+G	z	1	1b 
2	z	1	1bff 
2 CG	z	1	1ai( 
2@& @FG	z	1	1
 
2 G	z	1	1 
2LG	z	1	1A)$ 
2?G	z	1	1yI.!Q 
2 5G	y	0	0FH!Q( 
1 MG	z	1	1yI.+ 
2	1q 
2	1	1 
2	1	1	1	1	1	1	1	1	1	1	1
 
2	1	1	1	1	1 
2	1	1 
2	1	1
 
2	1	1
 
2	1	1
 
2	1	1
 
1	0	0 
2	1	1s   
O.O8O+0O?4
P,P'/%P;Q
Q#Q7R"RR3!SO	O(	+O<	?P	P$	'P8	;Q	Q 	#Q4	7R	R	R0	3S	S	c                  l   \        R^.^
R7      p \        R/ V B p\        V4      p\        P                  ! \        P
                  ! V4      4      pVP                  4       VP                  4       VP                  4       rep\        P                  ! WT8g  4      '       g   Q h\        P                  ! Wd8g  4      '       g   Q hVP                  ^*R7      VP                  ^*R7      VP                  ^*R7      rep\        P                  ! WT8H  4      '       g   Q h\        P                  ! Wd8H  4      '       g   Q hR# )r   r,   r   NrM  ro   )	r2   r"   r   pickleloadsdumpsr   r?   r^  )kwargsdist1dist2dist3r_  r`  res3s          r6   test_rng_deepcopy_pickler    s    RGr"FfEUOELLe,-E||~u||~u||~D66$,66$,|||+U\\b\-A5<<TV<CWD66$,66$,rD   c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )TestAttributesi  c                >   \        R R7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  RR7       RRR4       VP	                  4       p\        P                  ! \        VR7      ;_uu_ 4        VP	                  RR7       RRR4       RVn        \        P                  ! \        VR7      ;_uu_ 4        VP	                  RR7       RRR4       VP	                  4       pVP	                  RR7      p\        WC4       VP	                  RR7      pVP	                  RR7      p\        WE4       \        P                  ! W58H  4      '       d   Q hR Vn        VP	                  RR7      pVP	                  RR7      p\        WE4       \        P                  ! W58H  4      '       d   Q hVP                  4        \        P                  ! \        VR7      ;_uu_ 4        VP	                  RR7       RRR4       R	p\        P                  ! \        VR7      ;_uu_ 4        R
Vn        RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)no_cache)cache_policyzD`StandardNormal` does not provide an accurate implementation of the r*   r   r)  Nr   r(  z/Attribute `cache_policy` of `StandardNormal`...r   )r   r.   r/   r  r   r  r   r?   r^  r  r  )r3   r   r5   r   cached_meanquadrature_means   &     r6   test_cache_policy TestAttributes.test_cache_policy  s   :6X]].g>>IIWI% ?yy{]].g>>IIWI% ? !]].g>>IIWI% ?yy{iiwi/[' ))<)8iiwi/[266$12222 'yy	y*iiwi/[266$12222]].g>>IIWI% ? D]]:W55 )D 65C ?>> ?>>
 ?>>* ?> 655s;   H<II$)I8*J<I	I!	$I5	8J	J	c                   R p\         P                  ! 4       pRp\        P                  ! \        VR7      ;_uu_ 4        RVn        RRR4       \        P                  ! \        VR7      ;_uu_ 4        RVn        RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        P                  Vn        RRR4       \         P                  ! RR7      p\         P                  ! RR7      pVP                  V4      pVP                  VRR7      pVP                  VRR7      p\        WvVP
                  R	7       \        WVP
                  R	7       \        Wv,
          4      \        W,
          4      8  g   Q hR
p	VP
                  VP
                  uVn        Vn        VP                  V	4      pVP                  V	RR7      pVP                  V	RR7      p\        WvVP
                  R	7       \        WVP
                  R	7       \        W,
          4      \        Wv,
          4      8  g   Q hR#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i)      @z+Attribute `tol` of `StandardNormal` must...r*   Nr   r   r%  r   r)  r,  gGz?r        )r   )r   r    r.   r/   r  r/  r?   r~  r  r   absr   )
r3   r9   r  r5   X1X2rg   r_  r`  r   s
   &         r6   test_tolTestAttributes.test_tol  s   LLN?]]:W55AE 6]]:W55AE 6]]:W55FFAE 6 \\d#\\e$eeAhvvav-vvav-//4:TZ000ffQiwwqw-wwqw-//4:TZ000/ 655555555s#   H12I&I1I	I	I*	c                   \        ^ ^R7      pVP                  ^4      ^ 8X  g   Q hRVn        VP                  \        P                  ! R4      4      ^8X  g   Q h\        P                  ! R4      \        P                  ! R4      r2\        W#RR7      pVP                  \        P                  ! R4      4      R8X  g   Q h ! R R\         4      pV! W#RR7      pVP                  4       R	8X  g   Q hVP                  R
RR7      R	8X  g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        RVn        RRR4       R#   + '       g   i     R# ; i)r   r,   skip_all       @r  r  )r'   r-   validation_policyc                   ,   a  ] tR tRt o R tR tRtV tR# )0TestAttributes.test_iv_policy.<locals>.MyUniformi  c                    R # 	incorrectro   )r3   r  r  s   &*,r6   rO  ATestAttributes.test_iv_policy.<locals>.MyUniform._entropy_formula      "rD   c                    R # r0  ro   )r3   r  rP  s   &&,r6   _moment_raw_formulaDTestAttributes.test_iv_policy.<locals>.MyUniform._moment_raw_formula  r3  rD   ro   N)r   r   r   r   rO  r5  r   r   r   s   @r6   	MyUniformr.    s     ## #rD   r7  r1  r  )r  r  z/Attribute `validation_policy` of `MyUniform`...r*   r   NrM  )
r"   r   r,  r?   rs   r   r  r.   r/   r  )r3   r  r'   r-   r7  r5   s   &     r6   test_iv_policyTestAttributes.test_iv_policy  s   a1uuQx1}}(uuRZZ^$))) zz"~rzz"~1a
;uuRZZ^$***	# 	# *=yy{k))) xxU"x-<<< D]]:W55"+A 6555s   -D??E	c                   \         P                  ! ^^R7      p\         P                  ! ^.^R7      pVP                  ^8X  g   Q hVP                  ^8X  g   Q hVP                  ^ ,          ^8X  g   Q hVP                  ^ ,          ^8X  g   Q h\        P
                  ! \        4      ;_uu_ 4        ^Vn        RRR4       ^
VP                  ^ &   VP                  ^ ,          ^8X  g   Q hR#   + '       g   i     L;; i)r   murX  N)r   r    r<  rX  r.   r/   AttributeError)r3   r  Ys   &  r6   test_shapesTestAttributes.test_shapes-  s    LLAQ'LLQCq) ttqyyww!||ttAw!||wwqzQ ]]>**AD + QttAw!|| +*s   .C))C9	ro   N)
r   r   r   r   r  r'  r8  r?  r   r   r   s   @r6   r  r    s     &*P1<,> rD   r  c                   r  a  ] tR tRt o ]P
                  P                  R]! ]]	,           4      4      R 4       t
R t]P
                  P                  ]P
                  P                  R4      ]P
                  P                  RR^ ^]P                  ! . RO4      .4      R 4       4       4       t]P
                  P                  ]P
                  P                  RR	]P                  ! . RO4      .4      ]P
                  P                  R
R	]P                  ! . RO4      .4      R 4       4       4       tR tR tRtV tR# )TestMakeDistributioniA  zi, distdatac                v   V^ ,          p0 Rmp\        \        P                  P                  RR4      4      '       g   W49   d   \        P
                  ! R4       VR9   d   R# RR	RR	/pRR
0p0 R mp0 R!mp0 R"mp	^0 R#m^R0^R0/p
RR0p\        \        V4      pVP                  '       d6   \        \        VP                  P                  R4      V^,          4      4      M/ p\        P                  P                  R4      p\        P                  ! V4      pV! R$/ VB pV! R$/ VB pVP!                  ^
VR7      pVP#                  V4      pVP                  VR4      pRp\        P$                  ! RRR7      ;_uu_ 4        VP                  R4      w  pppp\'        VP)                  4       VP)                  4       4       W69  d+   \'        VP+                  4       VP+                  4       VR7       \-        V\        P.                  4      '       d?   \'        \        P0                  ! VP3                  4       4      VP+                  4       VR7       \'        VP5                  4       VP5                  4       VR7       \'        VP7                  4       VVVR7       \'        VP9                  4       VVVR7       W79  d   \'        VP;                  4       VVVR7       W89  d    \'        VP=                  RR7      VVVR7       \-        V\        P>                  4      '       dZ   \'        VPA                  V4      VPA                  V4      VR7       \'        VPC                  V4      VPC                  V4      VR7       MX\'        VPE                  V4      VPE                  V4      VR7       \'        VPG                  V4      VPG                  V4      VR7       \'        VPI                  V4      VPI                  V4      VR7       \'        VP#                  V4      VP#                  V4      VR7       W99  d-   \'        VPK                  V4      VPM                  V4      VR7       \'        VPO                  V4      VPQ                  V4      VR7       VP)                  4       w  ppVPS                  V4      pVVV^ 8H  &   VPU                  V4      pVVV^8H  &   \'        VPW                  V4      VVR7       \'        VPY                  V4      VVR7       \[        ^4       FJ  pW:P                  V/ 4      9  g   K  \'        VP]                  VRR7      VP]                  V4      VVR7       KL  	  \[        ^^4       FH  pW;9  g   K  \'        VP]                  VRR7      VP                  RV^,
          ,          4      VVR7       KJ  	  \-        V\        P>                  4      '       dP   Rp\'        VP!                  ^
VR7      VP_                  ^
\        P                  P                  V4      R7      VR7       RRR4       R#   + '       g   i     R# ; i)%r   exponpowksonekstwo	kstwobignSCIPY_XSLOW0zSkipping as XSLOWNgh㈵>pearson3invgammaparetor      s4XF rx  r   gHz>r%  r   r   mvskr,  )r-  r  excessr	  r  r  r  l   1XS+- )r;   random_state>   zipfargusrE  rF  kappa4logserrD  genexpongompertz	exponweib	johnsonsbrG  	powernorm
betanbinomhalfgennormnorminvgausspowerlognormrecipinvgaussvonmises_linestudentized_range>   vonmises	hypergeomlevy_stablepoisson_binomnchypergeom_fishernchypergeom_wallenius>   rE  rD  rg  >   chirE  rF  rD  rK  rY  rg  >   triangarcsine	trapezoid
skewcauchy>   levyru   levy_l
foldcauchy
halfcauchyro   )0r  osenvironr   r.   r
  r0  r   rH   r2   zipsplitr?   r   r   make_distributionr   r  r   r   r  r   r  rv_discreter  r   r   r   r   r   r   rv_continuousr   r   logpmfpmfr   r  logsfr  sfppfisfr   r  r  r  rvs) r3   r   distdatadistnamer   custom_tolerancesskip_entropyskip_skewnessskip_kurtosisskip_logccdfskip_rawskip_standardizedr   rP  r   CustomDistributionr  r>  r9   r   r-  r  mvskr'   rq  ref_ppfref_isfr  r   s    &&&                             r6   test_rv_generic$TestMakeDistribution.test_rv_genericB  s   A;0
 2::>>-5668;KKK+, 
 
  %dGT:#Z0F2 HNz
|% (1uh'DHKKKc$++++D18A;?@UWii##$45"44T:((N6NHH23H'EE!H $$Xt4[[(;;JAq!QAIIK5+		QYY[tD!U..//  q||~ 6		$OAHHJ
>AFFHad>AJJL!$TB,

adF,

h
 ?%)6$ 3 344QXXa[tDa!%%(>QXXa[tDa!%%(>AHHQK!4@AEE!HaeeAhT:+		!aggajtDAFF1IqttAwT: 99;DAqeeAhGGAFOeeAhGGAFOAFF1IwT:AGGAJd;q<<r#::#AHHUH$?$%HHUO$TK " q!4#AHHUH$H$%GGF57O$<4dT % $ 3 344 'rt < !235993H3H3N !& !P%)+i <;;;s   >N X'#AX'-B0X''X8	c           
     p   \         P                  P                  R 4      p ! R R4      p\        P                  ! V! 4       4      pV! R\         P
                  R7      p\        P                  ! \        RRR7      4      p\         P                  R8  dI   \        V4      R\         P
                   R28X  g   Q h\        V4      R	\         P
                   R
28X  g   Q hVP                  ^
VR7      pVP                  V4      p\        VP                  4       VP                  4       4       \        VP                  4       VP                  4       4       \        VP!                  4       VP!                  4       4       \        VP#                  V4      VP#                  V4      4       \        VP%                  V4      VP%                  V4      4       \        VP'                  V4      VP'                  V4      4       \        VP                  V4      VP                  V4      4       \        VP)                  V4      VP)                  V4      4       \        VP+                  V4      VP+                  V4      4       \        VP-                  V4      VP-                  V4      4       \        VP/                  V4      VP/                  V4      4       R FA  p\1        ^4       F/  p	\        VP3                  WR7      VP3                  WR7      4       K1  	  KC  	  VP                  ^
^ RR7      p
VP                  ^
^ RR7      p\        W4       \         P4                  ! W8H  4      '       d   Q h\        VP7                  RR7      VP7                  RR7      4       VP7                  RR7      VP7                  RR7      8X  d   Q hR# )rM  c                   n   a  ] tR tRt o ]R 4       t]R 4       t]R 4       tR tRR/R lt	RR	 lt
R
tV tR# )6TestMakeDistribution.test_custom.<locals>.MyLogUniformi  c                    R # z1.16.0ro   r3   s   &r6   __make_distribution_version__TTestMakeDistribution.test_custom.<locals>.MyLogUniform.__make_distribution_version__      rD   c                ^    R R^ \         P                  3RR/RRR \         P                  3RR//# )r'   r)   r>   r-   FFr?   r   r  s   &r6   r  ATestMakeDistribution.test_custom.<locals>.MyLogUniform.parameters  s:    kArvv;^TkC=+~VX XrD   c                
    R R/# )r)   r,   ro   r  s   &r6   r  >TestMakeDistribution.test_custom.<locals>.MyLogUniform.support  s    #Z00rD   c                    ^V\         P                  ! V4      \         P                  ! V4      ,
          ,          ,          # )r   r?   r   )r3   r9   r'   r-   s   &&&&r6   r   :TestMakeDistribution.test_custom.<locals>.MyLogUniform.pdf  s'    ARVVAY!6788rD   r   Nc                   VP                  VR 7      p\        P                  ! \        P                  ! V4      V\        P                  ! V4      \        P                  ! V4      ,
          ,          ,           4      # )r:   )r   r?   r  r   )r3   rx  r'   r-   r   r   s   &&$$$ r6   r   =TestMakeDistribution.test_custom.<locals>.MyLogUniform.sample  sH    KKUK+vvbffQi!rvvay266!9/D*EEFFrD   c                   V^8X  d:   VR8X  d1   WC,
          \         P                  ! WC,          4      ,          R,           # R# R# )r   r  g|=Nr  )r3   r  r  r'   r-   s   &&&$$r6   r  =TestMakeDistribution.test_custom.<locals>.MyLogUniform.moment  s4    A:$%- ERVVAC[0588 #0:rD   ro   )r  )r   r   r   r   propertyr  r  r  r   r   r  r   r   r   s   @r6   MyLogUniformr    s^         X X 1 19G G9 9rD   r  r  r,   r  z2.0zMyLogUniform(a=1.0, b=r   z-MyLogUniform(a=np.float64(1.0), b=np.float64(z))rN  r  r(  )rx  r   r*  rp  r)  r   Nr  r  r  )r?   r   r   r   ru  er  r"   __version__r~   reprr   r  r   r  r   r   r   r   r   r  r  r   r  r  r  r^  r   )r3   r   r  
LogUniformr  r>  r9   r   r  r  sample_formulasample_inverses   &           r6   test_custom TestMakeDistribution.test_custom  s   ii##$45	9 	96 ,,\^<
rtt$IIgb)* >>U"q65bddV1====7 MbddVSUVVVVHH23H'EE!H		QYY[1		QYY[1
AHHJ/QXXa[1a!%%(+QXXa[1a!%%(+		!aiil3q	166!9-q	166!9-
AGGAJ/6Dq : ! :< " 7 )D:MN766.:;;;;i0!&&&2MN666+qvv\v/JJJJJrD   zignore::RuntimeWarningr  c                   \         P                  P                  R 4      p ! R R4      p\        P                  ! V! 4       4      p\        P                  ! \        P
                  4      pV! V^ ^R7      pV! VR7      pVP                  ^
VR7      pVP                  V4      p	\        VP                  4       VP                  4       4       \        VP                  4       VP                  4       RR7       \        VP                  4       VP                  4       4       \        VP                  V4      VP                  V4      4       \        VP                  V4      VP                  V4      4       \        VP                  V4      VP                  V4      4       \        VP                  V4      VP                  V4      4       \        VP                  V4      VP                  V4      4       \        VP!                  V4      VP!                  V4      4       \        VP#                  V	4      VP#                  V	4      4       \        VP%                  V	4      VP%                  V	4      4       R# )	rM  c                   \   a  ] tR tRt o ]R 4       t]R 4       t]R 4       tR tR t	Rt
V tR# )	GTestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtremei  c                    R # r  ro   r  s   &r6   r  eTestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.__make_distribution_version__  r  rD   c           	         R R\         P                  ) \         P                  3RR/RR\         P                  ) \         P                  3RR/RR^ \         P                  3RR//# )r  r)   r>   r<  rX  r  r  r  s   &r6   r  RTestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.parameters  s^     +'8+~V;"&&"&&(9;WkArvv;^T rD   c                    R  pR pRW3RR/# )c                     \         P                  ! WV4      w  rp\         P                  ! V 4      p\         P                  ) W0^ 8  &   W^ 8  ,          W ^ 8  ,          W ^ 8  ,          ,          ,           W0^ 8  &   VR,          # r   ro   r?   r  
empty_liker   r  r<  rX  results   $$$ r6   left]TestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.support.<locals>.left  sh    #%#6#6qe#DLA5]]1-F&(ffWF6N$&1uI!eqQx0G$GFq5M!":%rD   c                     \         P                  ! WV4      w  rp\         P                  ! V 4      p\         P                  W0^ 8*  &   W^ 8  ,          W ^ 8  ,          W ^ 8  ,          ,          ,           W0^ 8  &   VR,          # r  r  r  s   $$$ r6   right^TestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.support.<locals>.right  sf    #%#6#6qe#DLA5]]1-F%'VVF6N$&1uI!eqQx0G$GFq5M!":%rD   r)   r>   r  ro   )r3   r  r  s   &  r6   r  OTestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.support  s    && $d]KPPrD   c                  \         P                  ! WW44      w  rr4\         P                  ! V4      pV^ 8H  p\         P                  ! W,          W6,          ,
          ) WF,          ,          4      WV&   ^W&( ,          W( ,          W6( ,          ,
          ,          WF( ,          ,          ,
          ^W&( ,          ,          ,          WV( &   ^V,          V^V,
          ,          ,          \         P                  ! V) 4      ,          pVR,          # r  r?   r  r  r  )r3   r9   r  r<  rX  tmaskr  s   &&$$$   r6   r   KTestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.pdf  s    "$"5"5aB"FbMM!$Q&&17RX#5!6u{!BC51U8bi#78uEEahJ % 51q1u:-bffaRj8bz!rD   c                  \         P                  ! WW44      w  rr4\         P                  ! V4      pV^ 8H  p\         P                  ! W,          W6,          ,
          ) WF,          ,          4      WV&   ^W&( ,          W( ,          W6( ,          ,
          ,          WF( ,          ,          ,
          ^W&( ,          ,          ,          WV( &   \         P                  ! V) 4      R,          # r  r  )r3   r9   r  r<  rX  r  r  s   &&$$$  r6   r  KTestMakeDistribution.test_custom_variable_support.<locals>.MyGenExtreme.cdf  s    "$"5"5aB"FbMM!$Q&&17RX#5!6u{!BC51U8bi#78uEEahJ % vvqbz"~%rD   ro   N)r   r   r   r   r  r  r  r  r   r  r   r   r   s   @r6   MyGenExtremer    sP           Q Q"	"& &rD   r  )r  r<  rX  r  rN  gh㈵>r,  N)r?   r   r   r   ru  
genextremer   r  r   r  r   r   r   r   r   r  r  r   r  )
r3   r  r   r  GenExtreme1GenExtreme2r%  r&  r9   r   s
   &&        r6   test_custom_variable_support1TestMakeDistribution.test_custom_variable_support  s    ii##$452	& 2	&h --ln=--e.>.>?1!,1IIBCI(FF1I

bjjl3

bjjl>		RYY[1		!biil3q	266!9-		!biil3q	266!9-

1rzz!}5
BGGAJ/
BGGAJ/RXXa[1rD   r'         ?r-   c                
   \         P                  P                  R 4      p ! R R4      p\        P                  ! \        P
                  4      p\        P                  ! V! 4       4      pWV,           ,          pW,           pV! WR7      pV! WgR7      p	V! WR7      p
V
P                  ^
VR7      pV
P                  V4      p\        VP                  4       V
P                  4       4       \        VP                  4       V
P                  4       4       \        VP                  V4      V
P                  V4      4       \        VP                  V4      V
P                  V4      4       \        VP                  V4      V
P                  V4      4       \        VP                  V4      V
P                  V4      4       \        VP                  V4      V
P                  V4      4       \        V	P                  4       V
P                  4       4       \        V	P                  4       V
P                  4       4       \        V	P                  V4      V
P                  V4      4       \        V	P                  V4      V
P                  V4      4       \        V	P                  V4      V
P                  V4      4       \        V	P                  V4      V
P                  V4      4       \        V	P                  V4      V
P                  V4      4       R# )rM  c                   f   a  ] tR tRt o ]R 4       t]R 4       tR
R lt]R 4       tR t	R t
R	tV tR# )KTestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBetaiC  c                    R # r  ro   r  s   &r6   r  iTestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBeta.__make_distribution_version__D  r  rD   c                z    R ^ \         P                  3R^ \         P                  3/RRR^ \         P                  3/3# )r'   r-   r<  nur   r  r  s   &r6   r  VTestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBeta.parametersH  s>     1bff+sQK864!RVV5 rD   Nc                x    Ve   Ve   Vf   Vf   W,           pW,          pMW4,          pWA,
          pRVRVRVRV/# )Nr'   r-   r<  r  ro   )r3   r'   r-   r<  r  s   &&&&&r6   process_parameters^TestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBeta.process_parametersO  sF    =Q]rzbjBBAAQQb$;;rD   c                
    R R/# )r)   r   ro   r  s   &r6   r  STestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBeta.supportX  s    #V,,rD   c                B    \         P                  P                  WV4      # N)r   _ufuncs	_beta_pdfr3   r9   r'   r-   r<  r  s   &&&&&&r6   r   OTestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBeta.pdf\  s    00q99rD   c                0    \         P                  ! W#V4      # r  )r   betaincr  s   &&&&&&r6   r  OTestMakeDistribution.test_custom_multiple_parameterizations.<locals>.MyBeta.cdf_  s    qQ//rD   ro   )NNNN)r   r   r   r   r  r  r  r  r  r   r  r   r   r   s   @r6   MyBetar  C  sS          < - -:0 0rD   r  r,   )r<  r  rN  N)r?   r   r   r   ru  rv   r   r  r   r  r   r   r  r   r  )r3   r'   r-   r   r  Betar<  r  r  r>  Zr9   r   s   &&&          r6   &test_custom_multiple_parameterizations;TestMakeDistribution.test_custom_multiple_parameterizations>  s    ii##$45	0 	0> &&uzz2((2a%[UQb 1NHH23H'EE!H		QYY[1
AHHJ/a!%%(+a!%%(+q	166!9-q	166!9-
AGGAJ/		QYY[1
AHHJ/a!%%(+a!%%(+q	166!9-q	166!9-
AGGAJ/rD   c                `   R p\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! \        P
                  4       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! \        P                  4       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! \        4       4       RRR4       R#   + '       g   i     L; i  + '       g   i     Lr; i  + '       g   i     R# ; i)z`levy_stable` is not supported.r*   Nz`vonmises` is not supported.z&The argument must be an instance of...)	r.   r/   r  r   ru  rd  rb  r  r  r3   r5   s   & r6   r  *TestMakeDistribution.test_input_validation  s    3]].g>>##E$5$56 ? 1]].g>>##ENN3 ? ;]]:W55##FH- 65 ?> ?> 655s#   %C6:%D	D6D		D	D-	c                h   ^ RI Hp VP                  4        F  p\        \        V4      '       d   K  Q h	  \        P
                  ! \        P                  4      p\        V! ^R7      4      R8X  g   Q h\        P                  R8  d   \        V! ^R7      4      R8X  g   Q hRVP                  9   g   Q h\        P
                  ! \        P                  4      p\        V! ^R7      4      R8X  g   Q h\        P                  R8  d   \        V! ^R7      4      R	8X  g   Q hR
VP                  9   g   Q hR# )r   )_distribution_namesr  zGamma(a=2.0)2zGamma(a=np.float64(2.0))Gamma)rv   zHalfGeneralizedNormal(beta=2.0)z+HalfGeneralizedNormal(beta=np.float64(2.0))HalfGeneralizedNormalN)(scipy.stats._distribution_infrastructurer  keyshasattrr   ru  gammar~   r?   r  r  __doc__r\  )r3   r  r   s   &  r6   test_repr_str_docs'TestMakeDistribution.test_repr_str_docs  s    P',,.D5$'''' / &&u{{34!9~///>>S q	?&@@@@$,,&&&&&u'8'894Q< $EEEE>>S !%)VVVV&$,,666rD   ro   NrM  )g r#  r  r  g @)r  r  r+  g      @g       @)r   r   r   r   r.   r   r   	enumerater   r   r  r  r   filterwarningsr?   rs   r  r  r  r  r   r   r   s   @r6   rB  rB  A  s$    [[]Ih6M,NOd+ Pd+LBKL [[[[ 89[[S2q!RZZ8P-Q"RSJ2 T : J2X [[[[S3

3L(M"NO[[S3

3L(M"NO<0 P P <0|.7 7rD   rB  c                   l  a  ] tR tRt o R tR t]P                  P                  ^
4      ]	! ]
P                  ! 4       ]
P                  ! ^ R7      R7      R 4       4       t]P                  P                  ^4      ]P                  P                  RRR	.4      R
 4       4       t]P                  P                  ^
4      ]P                  P                  R. RO4      ]P                  P!                  R4      R 4       4       4       t]P                  P                  ^4      R 4       tR tR tR tR tR tRtV tR# )TestTransformsi  c                    \         P                  ! ^
RR7      pRp\        P                  ! \        VR7      ;_uu_ 4        \         P
                  ! V4       RRR4       R#   + '       g   i     R# ; i)r@  r  )r  r   z@Transformations are currently only supported for continuous RVs.r*   N)r   r#   r.   r/   r  r  )r3   r  r5   s   &  r6    test_ContinuousDistribution_only/TestTransforms.test_ContinuousDistribution_only  sF    NNR3' U]].g>>IIaL ?>>>s   A  A1	c                   \         P                  P                  R 4      pVP                  R4      pVP                  R4      p\         P                  ! W#4      \         P                  ! W#4      r2\
        P                  ! \        4       W#R7      p\
        P                  ! W#4      pVP                  R	VR7      pVP                  V4      p\        VP                  4       \         P                  ! VP                  4       R,           4      4       \        VP                  4       VP                  4       4       \        VP                  4       VP!                  R4      4       \        VP#                  4       VP#                  4       4       \        VP%                  4       VP'                  4       4       \        VP)                  4       \         P*                  ! VP'                  4       4      4       \        VP-                  4       VP                  R4      4       \        VP/                  4       VP                  R4      ^,           4       \        VP1                  4       VP1                  4       4       \        VP3                  V4      VP3                  V4      4       \        VP                  V4      VP                  V4      4       \        VP5                  V4      VP7                  V4      4       \        VP9                  V4      VP!                  V4      4       \        VP;                  V4      VP=                  V4      4       \        VP?                  V4      VP?                  V4      4       \        VPA                  V4      VPA                  V4      4       \        VPC                  V4      VPE                  V4      4       \        VPG                  \         P                  ! V4      4      VP!                  V4      4       \        VPI                  \         P                  ! V4      4      VP=                  V4      4       VPK                  ^
4      p\         PL                  ! W8  W8  ,          4      '       g   Q hR# )
   b2,' )lbubrQ  r  r  r  r  Nr   r   r@  )'r?   r   r   minimummaximumr   truncater    	truncnormr~  r  r   r   r   r   r   r|  r   r   r  r  sqrtr   r   r  r   r  r{  r   r  r}  r   r   r  rz  r  r  r   r^  )	r3   r   r  r	  r>  Y0r   r   r   s	   &        r6   test_truncateTestTransforms.test_truncate  s   ii##N3ZZZZB#RZZ%7BNN682__R$FF7F-FF1Irzz|b/@(AB		RZZ\2
BFF3K0"''),

bffh/,,.0AB

bhhsm4

bhhsma&78		RZZ\2a"&&),a"&&),q	2558,q	266!9-
BFF1I.RYYq\2RYYq\2		!bhhqk2		"&&),bffQi8

266!9-rvvay9"vvv{v{34444rD   r   r   c           
        \         P                  P                  V4      p ! R  R\        4      p\	        WAVR^R7      pVw  rgrrrVP
                  pVP                  p\        4       p\        P                  ! WR7      pW~,
          V,          pW,
          V,          pVP                  4       w  ppVP                  4       w  pp\        VVV,           4       \        VVV,           4       \         P                  ! RRR7      ;_uu_ 4        \        \         P                  ! VP                  4       4      VP                  4       4       \        VP                  4       VP                  4       4       \        VP!                  4       VP!                  4       V,           4       \        VP#                  4       VP#                  4       V,           4       \        VP%                  4       VP%                  4       V,           4       \        VP'                  4       VP'                  4       V^,          ,          4       \        VP)                  4       VP'                  4       R,          4       \        VP+                  4       VP+                  4       \         P,                  ! V4      ,          4       \        VP/                  4       VP/                  4       4       \        VP1                  V4      VP1                  V4      \         P2                  ! V4      ,
          4       \        VP5                  V4      VP5                  V4      V,          4       \        VP7                  V4      VP7                  V4      4       \        VP9                  V4      VP9                  V4      4       \        VP;                  V4      VP;                  V4      4       \        VP=                  V4      VP=                  V4      4       \        VP7                  Wx4      VP7                  VV4      4       \        VP9                  Wx4      VP9                  VV4      4       \        VP;                  Wx4      VP;                  VV4      4       \        VP=                  Wx4      VP=                  VV4      4       \        VP?                  V
4      VP?                  V
4      V,          V,           4       \        VPA                  V	4      VPA                  V	4      V,          V,           4       \        VPC                  V
4      VPC                  V
4      V,          V,           4       \        VPE                  V	4      VPE                  V	4      V,          V,           4       \G        ^^4       F  p\        VPI                  VR4      VPI                  V4      4       \        VPI                  VR4      VPI                  VR4      VV,          ,          4       \        VPI                  VR	4      VPI                  VR	4      \         P,                  ! V4      V,          ,          4       K  	  R
R
R
4       V^V,          ,
          V,           pWo^,          ,          V,          p\         PJ                  ! VPL                  4      pVP                  4       w  ppVP                  4       w  pp\        VVV,           4       \        VVV,           4       \         P                  ! RRR7      ;_uu_ 4        \        VP                  4       VP                  4       V,           4       \        VP                  4       VP                  4       V,           4       \        VP!                  4       VP!                  4       V,           4       \        VP#                  4       VP#                  4       V,           4       \        VP%                  4       VP%                  4       V,           4       \        VP'                  4       VP'                  4       V,           4       \        VP)                  4       VP)                  4       V,           4       \        VP+                  4       VP+                  4       V,           4       \        VP/                  4       VP/                  4       V,           4       \        VP1                  V4      VP1                  V4      V,           4       \        VP5                  V4      VP5                  V4      V,           4       \        VP7                  V4      VP7                  V4      V,           4       \        VP9                  V4      VP9                  V4      V,           4       \        VP;                  V4      VP;                  V4      V,           4       \        VP=                  V4      VP=                  V4      V,           4       \        VP?                  V
4      VP?                  V
4      V,           4       \        VPA                  V	4      VPA                  V	4      V,           4       \        VPC                  V
4      VPC                  V
4      V,           4       \        VPE                  V	4      VPE                  V	4      V,           4       \G        ^^4       F  p\        VPI                  VR4      VPI                  VR4      4       \        VPI                  VR4      VPI                  VR4      4       \        VPI                  VR	4      VPI                  VR	4      4       K  	  R
R
R
4       R
#   + '       g   i     EL; i  + '       g   i     R
# ; i)c                   2   a a ] tR tRt oV 3R ltRtVtV ;t# )8TestTransforms.test_loc_scale.<locals>.TransformedNormali  c                @   < \         SV `  ! \        4       .VO5/ VB  R # r  )rN  __init__r   )r3   r  r  rR  s   &*,r6   r  ATestTransforms.test_loc_scale.<locals>.TransformedNormal.__init__  s     !1CDCFCrD   ro   )r   r   r   r   r  r   r   rT  rU  s   @@r6   TransformedNormalr    s     D DrD   r  )r   rG   )locscaler   r   r  r  r  r  N)r   r   r   r   )'r?   r   r   r   r   r  r  r   r   normr  r   r   r  r   r   r   r   r   r   r  r   signr   r   r   r   r   r  r  r  r  r   r  r  r  r  r  r  )r3   rK   r   r   r  r   r   r9   r   r   r   r]   r   r   r  r  dist0dist_refx0y0r'   r-   a0b0r   zs   &&&                       r6   test_loc_scaleTestTransforms.test_loc_scale  s    ii##D)	D 9 	D ,SlQPMPJt>hh

 ::#3gg||~1B28$28$[[(;;BFF4??#45t||~FDLLNH,<,<,>?DKKM5<<>C+?@DIIK);<DIIK);<DMMOU^^-=q-HID335t}}7KLDMMOU^^-=-NODMMOU^^-=>DKKNELL,<rvve},LMDHHQK2)>?DKKNELL,<=DHHQK27DLLOU]]2->?DIIaL%**R.9DKK-u||B/CDDHHQNEIIb",=>DLL.b"0EFDIIaOUZZB-?@DLL.d0CE0IC0OPDIIaL%**Q-*=*CDDMM$/1Ee1Kc1QRDJJqM5;;q>%+?#+EF1a[Au 5xq7IJAy 9 %Q	 :UAX EGA~ > %Q ?"''%.RSBS SU	 !1 <B qu#1H}u$HHT[[!||~1B26"26"[[(;;DOO-u/?/?/AA/EFDLLNEMMOa,?@DKKM5<<>A+=>DIIK)9:DIIK)9:DMMOU^^-=-ABD335u7O7O7QTU7UVDMMOU^^-=-ABDMMOU^^-=-ABDKKNELLOA,=>DHHQK1)9:DKKNELLOa,?@DHHQK1)9:DLLOU]]1-=-ABDIIaL%**Q-!*;<DLL.d0Ca0GHDIIaL%**Q-!*;<DMM$/1E1IJDJJqM5;;q>A+=>1a[Au 5u||Au7MNAy 95<<9;UVA~ > %Q ?A !) <;U <;;T <;;s   T2l.;P)m.l?	m	exp_powr  powc           	     	   \         P                  P                  R 4      pVP                  R
4      pVP                  R
4      p\        4       V,          V,           pVR8X  d   \        P
                  ! V4      pM\         P                  V,          p\        P                  ! V\         P
                  ! V4      R7      pVP                  RVR7      pVP                  V4      p	\        VP                  4       \         P                  ! VP                  4       4      4       \        VP                  4       VP                  4       4       \        VP                  4       VP                  R4      4       \        VP!                  4       VP!                  4       4       \        VP#                  4       VP%                  4       4       \        VP'                  4       \         P(                  ! VP%                  4       4      4       \        VP+                  4       VP	                  R4      4       \        VP-                  4       VP	                  R4      ^,           4       \        VP/                  4       VP/                  4       4       \        VP1                  V4      VP1                  V4      4       \        VP                  V4      VP                  V4      4       \        VP3                  V4      VP5                  V4      4       \        VP7                  V	4      VP                  V	4      4       \        VP9                  V	4      VP;                  V	4      4       \        VP=                  V4      VP=                  V4      4       \        VP?                  V4      VP?                  V4      4       \        VPA                  V4      VPC                  V4      4       \        VPE                  \         P                  ! V	4      4      VP                  V	4      4       \        VPG                  \         P                  ! V	4      4      VP;                  V	4      4       Rp
\        VPI                  V
R7      \         P
                  ! VPI                  V
R7      4      4       R	# )r  r  )r  r
  r  r  r     M [ r   Nr   r  )%r?   r   r   r    r   r  r  lognormr~  r  r   r   r   r   r   r|  r   r   r  r  r  r   r   r  r   r  r{  r   r  r}  r   r   r  rz  r  r  r   )r3   r(  r   r<  rX  r  r>  r  r   r   r   s   &&         r6   test_exp_powTestTransforms.test_exp_pow0  s    ii##N3ZZ

6"HUNRe		!A	A]]5r
3FF7F-FF1Irzz|(<=		RZZ\2
BFF3K0"''),

bffh/,,.0AB

bhhsm4

bhhsma&78		RZZ\2a"&&),a"&&),q	2558,q	266!9-
BFF1I.RYYq\2RYYq\2		!bhhqk2		"&&),bffQi8

266!9-rvvay9T*BFF18883E,FGrD   r  z/`scale=-1` fails on 32-bit; needs investigationc                n   \         P                  P                  R 4      pVP                  R4      p\         P                  ! V4      \	        V4      r\
        P                  ! \
        P                  4      pWA,          V! VR7      ,          pV^ 8  d   \        VR7      M\        VR7      ) pW,          pVP                  R	VR7      p	VP                  V	4      p
\         P                  ! V
4      p\        VP                  4       \         P                  ! VP                  4       4      4       \        VP                  4       VP                  4       4       \        VP                  4       VP                  4       4       \        VP!                  4       VP!                  4       4       \        VP#                  V	4      VP#                  V	4      4       \        VP                  V	4      VP                  V	4      4       \        VP%                  V	4      VP%                  V	4      4       \        VP'                  V
4      VP'                  V
4      4       \        VP)                  V
4      VP)                  V
4      4       \        VP+                  V	4      VP+                  V	4      4       \        VP-                  V	4      VP-                  V	4      4       \        VP/                  V	4      VP/                  V	4      4       \         P0                  ! RRR7      ;_uu_ 4        \        VP3                  V4      VP3                  V4      4       \        VP5                  V4      VP5                  V4      4       RRR4       Rp\        VP                  VR7      WP                  VR7      ,          4       R#   + '       g   i     LF; i)
r  r  rN  r   r   Nr+  r   r   r  )r?   r   r   r  r$  r   ru  rK  r   r   r  r   r   r   r   r   r  r   r  r   r  r   r   r  r   r  r  )r3   r  r   r'   r  InvGammar  r  r>  r   r   r   r   s   &&           r6   test_reciprocalTestTransforms.test_reciprocalX  s^    ii##N3JJv
 ggenc%je **5>>:\HqM)  !8FQK&1+IIIGI-FF1Ivvayrzz|(<=		RZZ\2
BIIK0		RZZ\2a"&&),a"&&),q	2771:.q	2771:.
BHHQK0RYYq\2RYYq\2		!bjjm4[[(;;AIIdORZZ-=>AJJt,bkk$.?@ < T*E8883E,FG	 <;s   AN$$N4	c           	        \         P                  P                  R 4      pVP                  R4      p\        VR7      p\        P
                  ! V4      p\        P                  ! V4      pVP                  RVR7      pVP                  V4      p\        VP                  4       \         P                  ! VP                  4       4      4       \        VP                  4       VP                  4       4       \        VP                  4       VP                  R4      4       \        VP                  4       VP                  4       4       \        VP                  4       VP!                  4       4       \        VP#                  4       \         P$                  ! VP!                  4       4      4       \        VP'                  4       VP	                  R4      4       \        VP)                  4       VP	                  R4      ^,           4       \        VP+                  4       VP+                  4       4       \        VP-                  V4      VP-                  V4      4       \        VP                  V4      VP                  V4      4       \        VP/                  V4      VP1                  V4      4       \        VP3                  V4      VP                  V4      4       \        VP5                  V4      VP7                  V4      4       \        VP9                  V4      VP9                  V4      4       \        VP;                  V4      VP;                  V4      4       \        VP=                  V4      VP?                  V4      4       \         P@                  ! RR7      ;_uu_ 4        \        VPC                  \         P                  ! V4      4      VP                  V4      4       \        VPE                  \         P                  ! V4      4      VP7                  V4      4       RRR4       R	p\        VPG                  VR
7      \         P                  ! VPG                  VR
7      4      4       R#   + '       g   i     LT; i)r  r  r
  r  r  r  r   )r   Nr+  r   r   r  )$r?   r   r   r   r   loggammar   r~  r  r   r   r   r   r|  r   r   r  r  r  r   r   r  r   r  r{  r   r  r}  r   r   r  rz  r   r  r  r   )	r3   r   r'   r  r  r>  r   r   r   s	   &        r6   test_logTestTransforms.test_log  s   ii##N3JJvQK^^AIIaLFF7F-FF1Irzz|(<=		RZZ\2
BFF3K0"''),

bffh/,,.0AB

bhhsm4

bhhsma&78		RZZ\2a"&&),a"&&),q	2558,q	266!9-
BFF1I.RYYq\2RYYq\2		!bhhqk2[[**AIIbffQi0"&&)<AJJrvvay1266!9= + T*BFF18883E,FG	 +*s   A=QQ/	c                   \        ^^R7      pRp\        \        P                  ! V4      4      RV R28X  g   Q h\        ^V,          4      RV R28X  g   Q h\        \        P                  ! V4      4      RV R28X  g   Q h\        R^R7      pRp\
        P                  ! \        VR7      ;_uu_ 4        ^V,           R	R	R	4       R
p\
        P                  ! \        VR7      ;_uu_ 4        \        P                  ! V4       R	R	R	4       Rp\
        P                  ! \        VR7      ;_uu_ 4        RV,           R	R	R	4       \
        P                  ! \        VR7      ;_uu_ 4        ^V,           R	R	R	4       \
        P                  ! \        VR7      ;_uu_ 4        RR.V,           R	R	R	4       Rp\
        P                  ! \        VR7      ;_uu_ 4        VR,           R	R	R	4       \
        P                  ! \        VR7      ;_uu_ 4        V^ ,           R	R	R	4       \
        P                  ! \        VR7      ;_uu_ 4        VRR.,           R	R	R	4       R	#   + '       g   i     EL; i  + '       g   i     ELs; i  + '       g   i     ELO; i  + '       g   i     EL-; i  + '       g   i     EL	; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R	# ; i)r   r,   zUniform(a=1.0, b=2.0)zlog(r   z1/(zexp(z=Division by a random variable is only implemented when the...r*   NzBThe logarithm of a random variable is only implemented when the...z@Raising an argument to the power of a random variable is only...r        ?z=Raising a random variable to the power of an argument is onlyrM  )r"   r~   r   r   r  r.   r/   r  )r3   r  X_strr5   s   &   r6   test_monotonic_transforms(TestTransforms.test_monotonic_transforms  s    a1'599Q< d5'O3331q5zs5'^+++599Q< d5'O333bAQ]].g>>E ?V]].g>>IIaL ?T]].g>>AI ?]].g>>F ?]].g>>#J!O ? R]].g>>"I ?]].g>>F ?]].g>>#sO ?>% ?>> ?>> ?>>>>>>>> ?>>>>>>s`   4
I,I-1
J'
JJ)
J=
KK#I*	-I>	J	J&	)J:	=K	K 	#K4	c                   \         P                  P                  R 4      pRw  r#rEVP                  R^^d4      p\	        W#R7      pWW,          V,           p\        VP                  V4      VP                  Wd,
          V,          4      4       WGV,          ,           p\        VP                  V4      VP                  Wd,
          V,          4      4       Wu,          V,
          p\        VP                  V4      VP                  Wd,           V,          4      4       V\	        W#R7      V,          ,
          p\        VP                  V4      VP                  V) V,           V,          4      4       R# )l   lO[5 r,   N)g7A`?gq=
ףp?g=
ףp=?g(\?)r?   r   r   r   r   r   r  r  )	r3   r   r'   r-   r  r  r9   r>  r  s	   &        r6   test_arithmetic_operators(TestTransforms.test_arithmetic_operators  s    ii##$782cKKAs#!!GcMa!%%E(9":;E'Ma!%%E(9":;GcMa!%%E(9":;q&u,,a!&&1"s(E)9":;rD   c                b   \         P                  P                  R 4      pVP                  R4      p\        P                  ! \        4       V,           4      p\        P                  ! V4      pVP                  RVR7      pVP                  V4      p\        VP                  4       \         P                  ! VP                  4       R,           4      4       \        VP                  4       VP                  4       4       \        VP                  4       VP                  R4      4       \        VP                  4       VP                  4       4       \        VP!                  4       VP#                  4       4       \        VP%                  4       \         P&                  ! VP#                  4       4      4       \        VP)                  4       VP                  R4      4       \        VP+                  4       VP                  R4      ^,           4       \        VP-                  4       VP-                  4       4       \        VP/                  V4      VP/                  V4      4       \        VP                  V4      VP                  V4      4       \        VP1                  V4      VP3                  V4      4       \        VP5                  V4      VP                  V4      4       \        VP7                  V4      VP9                  V4      4       \        VP;                  V4      VP;                  V4      4       \        VP=                  V4      VP=                  V4      4       \        VP?                  V4      VPA                  V4      4       \        VPC                  \         P                  ! V4      4      VP                  V4      4       \        VPE                  \         P                  ! V4      4      VP9                  V4      4       VPG                  ^
4      p\         PH                  ! V^ 8  4      '       g   Q hR# )	r  r
  r  r  r  r  Nr   r  )%r?   r   r   r   r$  r    foldnormr~  r  r   r   r   r   r   r|  r   r   r  r  r  r   r   r  r   r  r{  r   r  r}  r   r   r  rz  r  r  r   r^  )r3   r   r  r>  r  r   r   r   s   &       r6   test_absTestTransforms.test_abs  s   ii##N3jj IIfhn%^^C FF7F-FF1Irzz|b/@(AB		RZZ\2
BFF3K0"''),

bffh/,,.0AB

bhhsm4

bhhsma&78		RZZ\2a"&&),a"&&),q	2558,q	266!9-
BFF1I.RYYq\2RYYq\2		!bhhqk2		"&&),bffQi8

266!9-rvvay9"vvfqj!!!!rD   c                p   \         P                  ! \         P                  4      pV! ^R7      p\        V) 4      p\	        VP                  ^4      VP                  ^4      4       \	        VP                  ^4      VP                  ^4      4       \	        VP                  ^4      VP                  ^4      4       \	        VP                  ^4      VP                  ^4      4       \	        VP                  ^4      VP                  ^4      4       \	        VP                  ^4      VP                  ^4      4       R# )rn   r  N)r   ru  weibull_minr$  r   r   r   r   r  r  r  )r3   Weibullr  r>  s   &   r6   test_abs_finite_support&TestTransforms.test_abs_finite_support  s     ))%*;*;<aLGQXXa[!((1+.QUU1XquuQx(QXXa[!((1+.QUU1XquuQx(QYYq\199Q<0QVVAYq	*rD   c                    \         P                  P                  R 4      p\        4       ^,          p\        P
                  ! ^R7      pVP                  ^
VR7      pVP                  V4      p\        VP                  4       \         P                  ! VP                  4       R,           4      RR7       \        VP                  4       VP                  4       RR7       \        VP                  4       VP                  4       4       \        VP                  4       VP                  4       4       \        VP                  4       VP                  4       4       \        VP!                  4       \         P"                  ! VP                  4       4      4       \        VP%                  4       VP	                  R4      4       \        VP'                  4       VP	                  R4      ^,           4       \        VP)                  4       VP)                  4       4       \        VP+                  V4      VP+                  V4      4       \        VP                  V4      VP                  V4      4       \        VP-                  V4      VP/                  V4      4       \        VP1                  V4      VP3                  V4      4       \        VP5                  V4      VP7                  V4      4       \        VP9                  V4      VP9                  V4      4       \        VP;                  V4      VP;                  V4      4       \        VP=                  V4      VP?                  V4      4       \        VPA                  \         P                  ! V4      4      VP3                  V4      4       \        VPC                  \         P                  ! V4      4      VP7                  V4      4       VPE                  ^
4      p\         PF                  ! V^ 8  4      '       g   Q hR# )	r  )dfr
  r  r  r,  r  r  N)$r?   r   r   r    r   chi2r~  r  r   r   r   r   r   r   r   r  r  r  r   r   r  r   r  r{  r   r|  r  r}  r   r   r  rz  r  r  r   r^  )r3   r   r>  r  r   r   r   s   &      r6   test_powTestTransforms.test_pow  sw   ii##N3HaKZZ1FF2CF(FF1Irzz|b/@(AM		RZZ\=
BIIK0"''),

bffh/,,.0AB

bhhsm4

bhhsma&78		RZZ\2a"&&),a"&&),q	2558,q	266!9-
BFF1I.RYYq\2RYYq\2		!bhhqk2		"&&),bffQi8

266!9-rvvay9"vvfqj!!!!rD   ro   N)r   rn   rM  )r   r   r   r   r  r  r.   r   rm  r   r   rK   r   r&  r   r-  xfail_on_32bitr1  r5  r;  r?  rC  rH  rM  r   r   r   s   @r6   r  r    s;     5D [[2

!
(;(;a(HI[A J [AH [[1[[Y7#H 8 #HL [[2[[Wj1[[ QR&H S 2 &HP [[1H HB D<$"@+" "rD   r  c                   n   a  ] tR tRt o ]P
                  P                  ^4      R 4       tR tR t	Rt
V tR# )TestOrderStatistici&  c           	        \         P                  P                  R 4      p\        ^ ^R7      p^p\         P                  ! ^.^.^..4      p\
        P                  ! W#VR7      p\
        P                  ! WC^,           V,
          4      pVP                  RVR7      pVP                  V4      p\        \         P                  ! VP                  4       4      VP                  4       4       \        VP                  4       VP                  4       4       \        VP                  4       VP                  4       4       \        VP                  4       VP!                  4       4       \        VP#                  4       VP                  R4      RR7       \        VP%                  4       VP                  R4      ^,           RR7       \        VP'                  4       VP)                  R4      4       \        VP+                  4       VP+                  4       4       \        VP-                  V4      VP-                  V4      4       \        VP                  VR	R
7      VP                  VRR
7      4       \        VP/                  VR	R
7      VP/                  VRR
7      4       \        VP1                  VR	R
7      VP1                  VRR
7      4       \        VP3                  VR	R
7      VP3                  VRR
7      4       \        VP5                  V4      VP5                  V4      4       \        VP7                  V4      VP7                  V4      4       \        VP9                  V4      VP;                  V4      4       \         P<                  ! RRR7      ;_uu_ 4        \        VP?                  \         P@                  ! V4      4      VP)                  V4      4       \        VPC                  \         P@                  ! V4      4      VPE                  V4      4       RRR4       Rp	\F        PH                  ! \J        V	R7      ;_uu_ 4        \
        P                  ! W#RR7       RRR4       \F        PH                  ! \J        V	R7      ;_uu_ 4        \
        P                  ! VRVR7       RRR4       \F        PH                  ! \J        V	R7      ;_uu_ 4        \
        P                  ! W#RR7       RRR4       \F        PH                  ! \J        V	R7      ;_uu_ 4        \
        P                  ! VRVR7       RRR4       R#   + '       g   i     EL+; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)l   Cvu= r,   )r  rr
  r  r  r  r  r  r(  r)  r   r  r   r   Nz0`r` and `n` must contain only positive integers.r*   r8  r  rM  )&r?   r   r   r"   rs   r   order_statisticrv   r~  r  r   r  r   r   r   r   r  r   r   r   r|  r  r   r  r   r  r   r   r  rz  r   r  r   r  r}  r.   r/   r  )
r3   r   r  r  rS  r>  r  r   r   r5   s
   &         r6   test_order_statistic'TestOrderStatistic.test_order_statistic'  s{   ii##$45a1JJaS1#'!!!A.ZZq519%FF7F-FF1I 	q||~.

=		RZZ\2"''),

bffh/

bhhsm%@

bhhsma&7eD
BFF3K0		RZZ\2a"&&),a	2AEE!LE4QRq3QVVAlV5STq3QVVAkV5RS)4aggag6TURYYq\2RYYq\2		!bhhqk2[[(;;AIIbffQi1266!9=AJJrvvay1266!9= < E]]:W55!!!B/ 6]]:W55!!!rQ/ 6]]:W55!!!C0 6]]:W55!!!sa0 65 <;;
 655555555s=   A=T,8U =UU&U9,T=	 U	U#	&U6	9V
	c                    \         P                  ! \         P                  4      pV! 4       pV^,          ^,           p\         P                  ! V^^R7      p\	        VP                  4       VP                  4       4       R# )r   rS  r  N)r   ru  r   rT  r   r  )r3   r"   r  r>  r  s   &    r6   test_support_gh22037'TestOrderStatistic.test_support_gh22037R  sV     ))%--8IaC!G!!!qA.		QYY[1rD   c                   \         P                  ! \         P                  4      p\         P                  ! \         P                  4      pRR.^rC^^.^..reR..R...pV! 4       p\         P                  ! WV4      p	\         P
                  ! WVR7      p
V! W4R7      p\         P
                  ! WVR7      p\        P                  P                  V
P                  V4      VP                  V4      4       R# )rn   r   rX  r,   Nr9  rM  g333333ӿ)
r   ru  r  r  r  rT  r?   ry  r   r  )r3   r    TruncatedNormalr'   r-   rS  r  r9   r%  Y1Z1r&  Z2s   &            r6   test_composition_gh22037+TestOrderStatistic.test_composition_gh22037\  s    
 ((411%//BBx1A3*1fXwX^^B1%""2a0q&""2a0


""266!9bffQi8rD   ro   N)r   r   r   r   r.   r   rm  rU  rY  r`  r   r   r   s   @r6   rQ  rQ  &  s6     [[2(1 (1T29 9rD   rQ  c                      a  ] tR tRt o R tR t]P                  P                  R]	P                  ]	P                  3]	P                  ]	P                  3.4      R 4       tR tR tR tR tR	tV tR
# )TestFullCoveragein  c                   \         P                  ! \        4      ;_uu_ 4        \        P                  ! R R4       R R R 4       \         P                  ! \        4      ;_uu_ 4        \        P
                  ! R R4       R R R 4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! R 4       R R R 4       R #   + '       g   i     L; i  + '       g   i     Lf; i  + '       g   i     R # ; iNr  )r.   r/   r  r   rA   r1   __str__r  s   &r6   test_DomainTestFullCoverage.test_Domainq  s    ]].//T2& 0]].//++D"5 0]].//OOD! 0/	 0//////s#   C%C'C.C	C+	.C?	c                    \         P                  ! \        4      ;_uu_ 4        \        P                  ! R R4       R R R 4       R #   + '       g   i     R # ; ire  )r.   r/   r  r   validater  s   &r6   test_ParameterTestFullCoverage.test_Parametery  s1    ]].//b) 0///s   AA	c                    \        R
4      p\        RVR7      p\        P                  ! RR.VR7      pVP	                  V/ R7      w  rgp\        We4       Wr8X  g   Q h\        VRR.4       R	# )r   r9   rR   r  g      @r  r  TFN)rM  r   )r   r   r?   rs   rj  r   )	r3   dtype_in	dtype_outr4   r  r9   arrrz  r  s	   &&&      r6   "test_RealParameter_uncommon_dtypes3TestFullCoverage.test_RealParameter_uncommon_dtypes}  sj     w'"3v6	JJSz2%..q2.FES!!!UT5M*rD   c                     ! R  R\         4      pV! 4       p\        P                  pW2n        \        P                  ! R.VR7      pVP                  V4      P                  V8X  g   Q hR# )c                   H   a  ] tR tRt o ]! R]! RR7      R7      tR tRtV t	R# )	NTestFullCoverage.test_ContinuousDistribution_set_invalid_nan.<locals>.TestDisti  r9   r(   rR   c                    ^ # r   ro   r3   r9   r  r  s   &&*,r6   _logpdf_formula^TestFullCoverage.test_ContinuousDistribution_set_invalid_nan.<locals>.TestDist._logpdf_formula  s    rD   ro   N)r  r  )
r   r   r   r   r   r   r   ry  r   r   r   s   @r6   TestDistru    s      &s=83TUI rD   r{  r  r  N)r   r?   float32r{  rs   r   rz  )r3   r{  r  rz  r9   s   &    r6   +test_ContinuousDistribution_set_invalid_nan<TestFullCoverage.test_ContinuousDistribution_set_invalid_nan  sT    
	- 	
 J

JJuE*xx{  E)))rD   c                v   \        \        P                  ! R 4      4      P                  \        P                  ! \        P                  4      P                  8X  g   Q h\        \        P
                  ! ^4      4      P                  \        P                  ! \        P
                  4      P                  8X  g   Q hR# )r  N)r   r?   float64maxfinfoint64iinfor  s   &r6   test_fiinfoTestFullCoverage.test_fiinfo  sj    rzz"~&**bhhrzz.B.F.FFFFrxx{#''288BHH+=+A+AAAArD   c                    \        \        4      pR V9   g   Q h\        \        4      pRV9   g   Q h\        \        4      pRV9   g   Q hR# )z"accepts no distribution parameterszaccepts one parameterizationzaccepts two parameterizationsN)r   r   r    r   )r3   msgs   & r6   test_generate_domain_support-TestFullCoverage.test_generate_domain_support  sJ    &~63s:::&v.-444&{3.#555rD   c                t   \        ^ ^R7      p\        P                  R8  d   \        V4      R8X  g   Q hM\        V4      R8X  g   Q h\        P                  R8  d"   \        V^,          ^,           4      R8X  g   Q hM \        V^,          ^,           4      R8X  g   Q h\        \        P                  ! ^4      ^R7      p\        V4      R8X  g   Q h\        \        P                  ! ^\        P
                  R7      \        P                  ! ^\        P
                  R7      R7      p\        V4      R	8X  g   Q hR
# )r   r,   r  zUniform(a=0.0, b=1.0)z-Uniform(a=np.float64(0.0), b=np.float64(1.0))z3.0*Uniform(a=0.0, b=1.0) + 2.0zOnp.float64(3.0)*Uniform(a=np.float64(0.0), b=np.float64(1.0)) + np.float64(2.0)z'Uniform(a=array([0., 0., 0., 0.]), b=1)r  z[Uniform(a=array([0., 0., 0., 0.], dtype=float32), b=array([1., 1., 1., 1.], dtype=float32))N)r"   r?   r  r  r  r|  r  )r3   r  s   & r6   #test_ContinuousDistribution__repr__4TestFullCoverage.test_ContinuousDistribution__repr__  s    a1>>C755557MMMM>>C!a=$EEEE!a=%  
 bhhqkQ'AwCCCCbhhq

3rwwq

7STAw9
 	
 
rD   ro   N)rn  ro  )r   r   r   r   rg  rk  r.   r   r   r?   float16int16r  rq  r}  r  r  r  r   r   r   s   @r6   rc  rc  n  st     "* [[6 "

BJJ7 ""**578+8+* B6
 
rD   rc  c                   4  a  ] tR tRt o ]! ^ ^R7      t]! ]P                  ! R4      ]P                  ! R4      R7      t]	! R^R7      t
]	! ^^R7      t]	! ]P                  ! R4      ^R7      t]P                  P!                  R]]]P"                  ! RR.4      ,
          ]P$                  ! ]]P                  P'                  ]P(                  R	8  R
R7      R7      ]P$                  ! ]P*                  ! ^]P                  R7      ],          ]P                  ! ^]P,                  R7      ,           ]P                  P'                  ]P(                  R	8  R
R7      R7      ^],          ^,           ]^,          ^],          ^,           ^,          ^],          ^,           ^,          ^],          ^^],          ^,           ,          ^^],           ,          ]P0                  ! ]^^R7      ]P2                  ! ]RR4      ]P4                  ! ]
].RR.R7      ]! ]4      ]P8                  ! ]4      ]P:                  ! ^],           4      ]P"                  ! RR.4      ],          ]P"                  ! RR.4      ,           .4      R 4       t]P                  P!                  R]]P>                  ! RR4      ]
,          R,           R]
,          ]P>                  ! RR4      ,           ]P>                  ! RR4      ]
,          R,           ]P2                  ! ]R^4      ]P2                  ! ]]P*                  ! R4      ) ]P*                  ! R4      4      ]P0                  ! ]
]P@                  ! ^R4      RR7      ]^,          R^]P8                  ! ]4      ,           ,          ^],          .
4      R 4       t!Rt"V t#R# )	TestReprsi  r,   r  r  r;  i  r   r+  r  z#numpy 1.x didn't have dtype in repr)reason)marksr  rX  g?g?g333333?r   weightsr"  c                   ^ RI Hp ^ RI Hp ^ RIHpHpHpHpHp ^ RIH	p	H
p
 ^ RIHp \        \        V4      4      pVP                  ^
RR7      pVP                  ^
RR7      p\!        W4       VP"                  VP"                  J g   Q hR# )	r   )array)r|  )r$  r  r   rT  r  )r   r    )r"   i  rN  N)numpyr  r|  scipy.statsr$  r  r   rT  r  r   r    scipy.stats._new_distributionsr"   r[   r  r   r   rz  )r3   r   r  r|  r$  r  r   rT  r  r   r    r"   new_distr  r  s   &&             r6   test_executableTestReprs.test_executable  sg    L 	 !HH/:T
#++BD+1///5W&}}---rD   c                <    \        \        V4      4      ^8  g   Q hR# )   N)lenr  )r3   r   s   &&r6   test_not_too_longTestReprs.test_not_too_long  s    $ 4:$$$rD   ro   NrM  )$r   r   r   r   r"   Ur?   r|  Vr    r  r>  r  r  r.   r   r   r  paramskipifr  r  r  r   rT  r  r   r$  r  r   r  fullaranger  r   r   r   s   @r6   r  r    s    !qA"**S/RZZ_5A"AA!1A"((4.*A[[#s$$LLkk((NNS(@ )  LL,Q.!2::1NNkk((NNS(@ )  aC!GqDqS1WqLqS1WqLqD!aLQK!!!qA.NN1c3'MM1a&3*5FIIaLIIa!eHHc3Z "RXXsCj%99=	
"F.G"F. [[GGD#"S(!GbggdC((GGD#"S(NN1b!$NN1rwwt}nbggdm<!!!ryyD'9TBqD1uyy|#$qD	
%%rD   r  c                   v   a  ] tR tRt o ]! R]! ]P                  ) ]P                  3R7      R7      tR t	Rt
V tR# )	MixedDisti  r9   r(   rR   c                   R R\         P                  ! ^\         P                  ,          4      ,          ,          \         P                  ! RVR,           R,          ^,          ,          4      ,          RR\         P                  ! ^\         P                  ,          4      ,          ,          \         P                  ! RVR,
          R,          ^,          ,          4      ,          ,           # )皙?皙?r        ?333333??      )r?   r  r@   r  rx  s   &&*,r6   _pdf_formulaMixedDist._pdf_formula  s    rwwqw//0266$4q?P:P3QQ3255!112RVVD1S5#+PQAQ<Q5RRS 	TrD   ro   N)r   r   r   r   r   r   r?   r   r   r  r   r   r   s   @r6   r  r    s1     s=RVVGRVVCT+UVIT TrD   r  c                      a  ] tR tRt o R t]P                  P                  RRR
.4      R 4       tR t	R t
R tRtV tR	# )TestMixturei  c                   R p\         P                  ! \        VR7      ;_uu_ 4        \        . 4       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        R4       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        \	        ^^.R7      \	        4       .4       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        \	        4       .RR.R7       RRR4       R	p\         P                  ! \        VR7      ;_uu_ 4        \        \	        4       .^.R7       RRR4       R	p\         P                  ! \        VR7      ;_uu_ 4        \        \	        4       .^.R7       RRR4       R
p\         P                  ! \        VR7      ;_uu_ 4        \        \	        4       \	        4       .RR.R7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        \	        4       \	        4       .RR.R7       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL{; i  + '       g   i     ELI; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)z7`components` must contain at least one random variable.r*   Nz3Each element of `components` must be an instance...z5All elements of `components` must have scalar shapes.)r<  z5`components` and `weights` must have the same length.r  r  z)`weights` must have floating point dtype.z`weights` must sum to 1.0.r  z#All `weights` must be non-negative.r8  r\  r  )r.   r/   r  r   r    r  s   & r6   r  !TestMixture.test_input_validation  s   K]]:W55BK 6 H]]:W55I 6 J]]:W55V1v&12 6 J]]:W55VXJc
3 6 >]]:W55VXJ, 6 >]]:W55VXJ, 6 /]]:W55VXvx(3*= 6 8]]:W55VXvx(3+> 659 655 655 655 655 655 655 65 655s_   H:!I"I"+I62J
8J>"J2"K:I	I	"I3	6J	
J	J/	2K	K	rx  c           
       a \         P                  P                  R 4      p\        \	        RRR7      \	        RRR7      3RR7      p\        4       pVP                  S4      pV3R lpV! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  4       VP                  4       4       V! VP                  V4      VP                  V4      4       V! VP!                  V4      VP!                  V4      4       V! VP#                  V4      VP#                  V4      4       V! VP%                  V4      VP%                  V4      4       V! VP'                  V4      VP'                  V4      4       V! VP)                  V4      VP)                  V4      4       V! VP+                  V4      VP+                  V4      4       V! VP-                  V4      VP-                  V4      4       V! VP/                  V4      VP/                  V4      4       V! VP1                  V4      VP1                  V4      4       R F@  p\3        ^4       F.  pV! VP5                  WR7      VP5                  WR7      RR	7       K0  	  KB  	  RoVP7                  SVR
7      p	V	P8                  S8X  g   Q h\:        P<                  ! V	P?                  4       VP$                  4      P@                  R8  g   Q hR# )l   $8-@r  r;  r  r  r  c                    < SR8X  d   \         P                  ! V 4      '       g   Q h\         P                  P                  ! W3/ VB  R # )Nro   )r?   r|  ry  r   )rd   rg   r  rx  s   &&,r6   r   /TestMixture.test_basic.<locals>.assert_allclose?  s6    {{{3''''JJ&&s:6:rD   r  r  r  r   g?N      пr  r  r  )r@     r   )!r?   r   r   r   r    r  r   r   r   r   r   r   r  r   r   r   r   r   r  r  r  r  r   r  r  r  r  r   rx  r   ks_1sampravelr  )
r3   rx  r   r  r>  r9   r   r  r  r   s
   &f        r6   
test_basicTestMixture.test_basic7  s   ii##$67VuC0&Cs2KL&(KJJu	;
 	7		QYY[1!&&(+
AHHJ/!&&(+

ajjl3,,.0D0D0FG

ajjl3

ajjl3QXXa[1a!%%(+QXXa[1a!%%(+		!aiil3q	166!9-		!aiil3q	166!9-

1qzz!}5
AGGAJ/6Dq : ! :%*, " 7 HHUH$ww%~~aggi/66===rD   c                B   R p\         P                  ! \         P                  4      pV! VR7      p\         P                  ! W3) 34      p\        P
                  ! R^R4      p\        VP                  V4      \         P                  ! VR7      P                  V4      4       R# )r  r  rf  N)	r   ru  r  r   r?   rY   r   r   dgamma)r3   r'   r  r  r>  r9   s   &     r6   test_default_weights TestMixture.test_default_weightsc  sn    ''4AJMM1b'"KKAs#a%,,"3"7"7":;rD   c                F   \        RRR7      \        RRR7      .pRp\        WR7      p\        P                  ! \        4      ;_uu_ 4        ^
Vn        RRR4       \        P                  ! \        4      ;_uu_ 4        ^
Vn        RRR4       V^,          VP
                  ^ &   VP
                  ^ ,          V^ ,          8X  g   Q hV^,          VP                  ^ &   VP                  ^ ,          V^ ,          8X  g   Q hR#   + '       g   i     L; i  + '       g   i     L; i)	r  r  r;  r  r  r  Nr  r  )r    r   r.   r/   r=  
componentsr  )r3   r  r  r  s   &   r6   test_propertiesTestMixture.test_propertiesk  s    S16S3LM
J0 ]]>**AL +]]>**AI + %Q-Q||A*Q-///qz		!yy|wqz))) +***s   C==D=D	D 	c                   \         P                  P                  R 4      p\        P                  ! \        P
                  4      pV! 4       p\        P                  ! W3.4      pVP                  ^
R7      p\         P                  P                  VP                  V4      VP                  V4      4       \         P                  P                  VP                  V4      VP                  V4      4       \         P                  P                  VP                  V4      VP                  V4      4       \         P                  P                  VP                  V4      VP                  V4      4       R# )l    nppRr:   N)r?   r   r   r   ru  cauchyr   ry  r   r   r  r  r  )r3   r   CauchyX0r  r   s   &     r6   test_inverseTestMixture.test_inverse}  s     ii##$;<((6XMM2(#JJBJ


""166!9bggaj9


""1771:rxx{;


""199Q<A?


""1::a="++a.ArD   ro   N)r@  )r   r   r   r   r  r.   r   r   r  r  r  r  r   r   r   s   @r6   r  r    sK     ?B [[Wr5k2)> 3)>V<*$B BrD   r  c                      \         P                  ! \         P                  4      p V ! R ^R7      p\        VP	                  ^4      R4       R# )g      ?)r'   r  r  N)r   ru  zipfianr   r  )Zipfianzdists     r6   !test_zipfian_distribution_wrapperr    s6     %%emm4Gdb!E2$rD   rw  )rn   r   )r}   r   )W	itertoolsr   rq  r  r  r   r  r?   r   r.   numpy.testingr   r   
hypothesisr   r   r	   r
   hypothesis.extra.numpyextrarU   scipyr   r   scipy.stats._fitr   scipy.stats._ksstatsr   r  r   scipy.stats._distr_paramsr   r   r  r   r   r   r   r   r   r   r   r   r   r  r   r   r   r   r    r!   r"   r#   r%   r   continuous_familiesdiscrete_familiesrn  r   r   r   r  r  r  r  r   r   r   r   r   r  r   Sobolr  rw  r  r  r  r  rB  r  rQ  rc  r  r  r  r  ro   rD   r6   <module>r     s    	      7 E E % %   0 (  <' ' ' O N ? ; ;v6 v6r"NL 
    !22|! |!| 'F"4$l0$f$@PGfn| F9-UWf$56'898*-bii&9&93::syy%QR9 S . : 7 .
9<%N$8@,F  w wtZ7 Z7z
F" F"PE9 E9PO
 O
dK% K%\T& TtB tBn%rD   