original_docstring: r"""
  
          Instantaneous hazard rate for the Gamma Distribution:
  
          .. math::
              h(x) = \frac{\frac{\beta^{\alpha }}{\Gamma \left ( \alpha \right )
              }x^{\alpha - 1}e^{-\beta x}}{1 - \frac{\gamma \left ( \alpha, \beta
              x \right )}{\Gamma \left ( \alpha \right )}}
  
          Parameters
          ----------
  
          x : numpy array or scalar
              The values at which the function will be calculated
          alpha : numpy array or scalar
              The shape parameter for the Gamma distribution
          beta : numpy array or scalar
              The scale parameter for the Gamma distribution
  
  
          Returns
          -------
  
          Hf : scalar or numpy array
              The instantaneous hazard rate of the distribution at each x
  
          Examples
          --------
          >>> import numpy as np
          >>> from surpyval import Gamma
          >>> x = np.array([1, 2, 3, 4, 5])
          >>> Gamma.hf(x, 3, 2)
          array([0.8       , 1.23076923, 1.44      , 1.56097561, 1.63934426])
          
docstring: r"""
  Instantaneous hazard rate for the Gamma Distribution.
  
  
  
  Parameters
  
  x : numpy array or scalar
  The values at which the function will be calculated
  alpha : numpy array or scalar
  The shape parameter for the Gamma distribution
  beta : numpy array or scalar
  The scale parameter for the Gamma distribution
  
  Returns
  
  Hf : scalar or numpy array
  The instantaneous hazard rate of the distribution at each x
  
  Examples
  
  
docstring_tokens: r " " " Instantaneous hazard rate for the Gamma Distribution . Parameters x : numpy array or scalar The values at which the function will be calculated alpha : numpy array or scalar The shape parameter for the Gamma distribution beta : numpy array or scalar The scale parameter for the Gamma distribution Returns Hf : scalar or numpy array The instantaneous hazard rate of the distribution at each x Examples
code: def hf(self, x, alpha, beta):
          r"""
  
          Instantaneous hazard rate for the Gamma Distribution:
  
          .. math::
              h(x) = \frac{\frac{\beta^{\alpha }}{\Gamma \left ( \alpha \right )
              }x^{\alpha - 1}e^{-\beta x}}{1 - \frac{\gamma \left ( \alpha, \beta
              x \right )}{\Gamma \left ( \alpha \right )}}
  
          Parameters
          ----------
  
          x : numpy array or scalar
              The values at which the function will be calculated
          alpha : numpy array or scalar
              The shape parameter for the Gamma distribution
          beta : numpy array or scalar
              The scale parameter for the Gamma distribution
  
  
          Returns
          -------
  
          Hf : scalar or numpy array
              The instantaneous hazard rate of the distribution at each x
  
          Examples
          --------
          >>> import numpy as np
          >>> from surpyval import Gamma
          >>> x = np.array([1, 2, 3, 4, 5])
          >>> Gamma.hf(x, 3, 2)
          array([0.8       , 1.23076923, 1.44      , 1.56097561, 1.63934426])
          """
          return self.df(x, alpha, beta) / self.sf(x, alpha, beta)
code_tokens: def hf ( self , x , alpha , beta ) : return self . df ( x , alpha , beta ) / self . sf ( x , alpha , beta )
short_docstring: r"""
  Instantaneous hazard rate for the Gamma Distribution:
short_docstring_tokens: r " " " Instantaneous hazard rate for the Gamma Distribution :
comment: r"""
  
          Instantaneous hazard rate for the Gamma Distribution:
  
          .. math::
              h(x) = \frac{\frac{\beta^{\alpha }}{\Gamma \left ( \alpha \right )
              }x^{\alpha - 1}e^{-\beta x}}{1 - \frac{\gamma \left ( \alpha, \beta
              x \right )}{\Gamma \left ( \alpha \right )}}
  
          Parameters
          ----------
  
          x : numpy array or scalar
              The values at which the function will be calculated
          alpha : numpy array or scalar
              The shape parameter for the Gamma distribution
          beta : numpy array or scalar
              The scale parameter for the Gamma distribution
  
  
          Returns
          -------
  
          Hf : scalar or numpy array
              The instantaneous hazard rate of the distribution at each x
  
          Examples
          --------
          >>> import numpy as np
          >>> from surpyval import Gamma
          >>> x = np.array([1, 2, 3, 4, 5])
          >>> Gamma.hf(x, 3, 2)
          array([0.8       , 1.23076923, 1.44      , 1.56097561, 1.63934426])
          """