docs: def nga_west2_epistemic_adjustment(magnitude, distance):
      """
      Applies the "average" adjustment factor for epistemic uncertainty
      as defined in Table 17 of Petersen et al., (2014)::
  
                   |  R < 10.  | 10.0 <= R < 30.0  |    R >= 30.0
       -----------------------------------------------------------
         M < 6.0   |   0.37    |      0.22         |       0.22
       6 <= M <7.0 |   0.25    |      0.23         |       0.23
         M >= 7.0  |   0.40    |      0.36         |       0.33
      """
      if magnitude < 6.0:
          adjustment = 0.22 * np.ones_like(distance)
          adjustment[distance < 10.0] = 0.37
      elif magnitude >= 7.0:
          adjustment = 0.36 * np.ones_like(distance)
          adjustment[distance < 10.0] = 0.40
          adjustment[distance >= 30.0] = 0.33
      else:
          adjustment = 0.23 * np.ones_like(distance)
          adjustment[distance < 10.0] = 0.25
      return adjustment