
    Vpf              	       n    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)promote_args_inexact)Array	ArrayLike   xlocscalereturnc                 \   t          d| ||          \  } }}t          j        |          }t          j        t          j        | |          |          }t          j        t          j        ||                    }t          j        t          j	        | |          t          j
         |          S )a  Exponential log probability distribution function.

  JAX implementation of :obj:`scipy.stats.expon` ``logpdf``.

  The Exponential probability distribution function is

  .. math::

     f(x) = \begin{cases}
       e^{-x} & x \ge 0 \\
       0 & \mathrm{otherwise}
     \end{cases}

  Args:
    x: arraylike, value at which to evaluate the PDF
    loc: arraylike, distribution offset parameter
    scale: arraylike, distribution scale parameter

  Returns:
    array of logpdf values.

  See Also:
    :func:`jax.scipy.stats.expon.pdf`
  zexpon.logpdf)r   r   logdivsubnegaddjnpwhereltinf)r   r	   r
   	log_scalelinear_term	log_probss         Z/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/jax/_src/scipy/stats/expon.pylogpdfr      s    2 '~q#uEE-!S%genn)3//+gcgk95566)	36!S>>CG8Y	7	77    c                 H    t          j        t          | ||                    S )a  Exponential probability distribution function.

  JAX implementation of :obj:`scipy.stats.expon` ``pdf``.

  The Exponential probability distribution function is

  .. math::

     f(x) = \begin{cases}
       e^{-x} & x \ge 0 \\
       0 & \mathrm{otherwise}
     \end{cases}

  Args:
    x: arraylike, value at which to evaluate the PDF
    loc: arraylike, distribution offset parameter
    scale: arraylike, distribution scale parameter

  Returns:
    array of pdf values.

  See Also:
    :func:`jax.scipy.stats.expon.logpdf`
  )r   expr   )r   r	   r
   s      r   pdfr   5   s     2 
3&&	'	''r   )r   r   )jaxr   	jax.numpynumpyr   jax._src.numpy.utilr   jax._src.typingr   r   r   r    r   r   <module>r%      s                4 4 4 4 4 4 , , , , , , , ,8 8i 8i 8I 8e 8 8 8 8@( (9 (9 ( (5 ( ( ( ( ( (r   