class_docstr: Class to enable simple cosmological calculations.
  
  For a more full-featured cosmology package, see CosmoloPy [1]_
  
  Parameters
  ----------
  omegaM : float
      Matter Density. 0 <= omegaM <= 1
  omegaL : float
      Dark energy density. 0 <= omegaL <= 1
  h : float
      Hubble parameter, in units of 100 km/s/Mpc
  
  References
  ----------
  [1] http://roban.github.com/CosmoloPy/
docstr: dimensionless Hubble constant at redshift z
  This is used in integration routines
  Defined as in equation 14 from Hogg 1999, and modified
  for non-constant w parameterized linearly with z ( w = w0 + w1*z )
docstr_tok: ["dimensionless","Hubble","constant","at","redshift","z","This","is","used","in","integration","routines","Defined","as","in","equation","14","from","Hogg","1999",",","and","modified","for","non-constant","w","parameterized","linearly","with","z","(","w","=","w0","+","w1","*","z",")"]
code: def _hinv(self, z):
      """
      dimensionless Hubble constant at redshift z
      This is used in integration routines
      Defined as in equation 14 from Hogg 1999, and modified
      for non-constant w parameterized linearly with z ( w = w0 + w1*z )
      """
      if np.isinf(z):
          return np.inf
      return np.sqrt(
          self.omegaM * (1.0 + z) ** 3
          + self.omegaK * (1.0 + z) ** 2
          + self.omegaL
      )
  
file_path: astroML/astroML/cosmology.py
imports: import numpy
  from scipy import integrate
  from astroML.utils import deprecated
  from astroML.utils.exceptions import AstroMLDeprecationWarning
label_desc: Use image node_id 2 for calling the Cosmology obj's underlying member method code with example usage: obj._hinv(z) and returns: np, np