§
    Vp«fÃ  ã            	       ó†   — d dl mZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZmZ ddeded	ed
efd„Zddeded	ed
efd„ZdS )é    )ÚlaxN)Ú_const)Úpromote_args_inexact)Úxlog1py)ÚArrayÚ	ArrayLikeÚkÚpÚlocÚreturnc                 ór  — t          d| ||¦  «        \  } }}t          | d¦  «        }t          | d¦  «        }t          j        | |¦  «        }t	          t          j        ||¦  «        | ¦  «        t          j        |¦  «        z   }t          j        t          j        ||¦  «        t          j	         |¦  «        S )aò  Geometric log probability mass function.

  JAX implementation of :obj:`scipy.stats.geom` ``logpmf``.

  The Geometric probability mass function is given by

  .. math::

     f(k) = (1 - p)^{k-1}p

  for :math:`k\ge 1` and :math:`0 \le p \le 1`.

  Args:
    k: arraylike, value at which to evaluate the PMF
    p: arraylike, distribution shape parameter
    loc: arraylike, distribution offset parameter

  Returns:
    array of logpmf values.

  See Also:
    :func:`jax.scipy.stats.geom.pmf`
  zgeom.logpmfr   é   )
r   Ú
_lax_constr   Úsubr   ÚlogÚjnpÚwhereÚleÚinf)r	   r
   r   ÚzeroÚoneÚxÚ	log_probss          úY/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/jax/_src/scipy/stats/geom.pyÚlogpmfr      s”   € õ0 # =°!°Q¸Ñ<Ô<)€!€QˆÝ	AqÑ	Ô	€$Ý1aÑÔ€#Ý	„gˆao„o€!Ý•c”g˜a ‘o”o¨ rÑ*Ô*­S¬W°Q©Z¬ZÑ7€)Ý	Œ•3”6˜!˜T‘?”?¥S¤W H¨iÑ	8Ô	8Ð8ó    c                 óH   — t          j        t          | ||¦  «        ¦  «        S )aë  Geometric probability mass function.

  JAX implementation of :obj:`scipy.stats.geom` ``pmf``.

  The Geometric probability mass function is given by

  .. math::

     f(k) = (1 - p)^{k-1}p

  for :math:`k\ge 1` and :math:`0 \le p \le 1`.

  Args:
    k: arraylike, value at which to evaluate the PMF
    p: arraylike, distribution shape parameter
    loc: arraylike, distribution offset parameter

  Returns:
    array of pmf values.

  See Also:
    :func:`jax.scipy.stats.geom.logpmf`
  )r   Úexpr   )r	   r
   r   s      r   Úpmfr   7   s    € õ0 
Œ•˜˜1˜cÑ"Ô"Ñ	#Ô	#Ð#r   )r   )Újaxr   Ú	jax.numpyÚnumpyr   Újax._src.lax.laxr   r   Újax._src.numpy.utilr   Újax.scipy.specialr   Újax._src.typingr   r   r   r   © r   r   ú<module>r(      sî   ðð Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø %Ð %Ð %Ð %Ð %Ð %Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,Ð ,ð9ð 9ˆið 9˜Ið 9¨Ið 9¸eð 9ð 9ð 9ð 9ð@$ð $ˆ9ð $˜ð $¨ð $¸5ð $ð $ð $ð $ð $ð $r   