code: def convertIndexToState(index):
      
      assert index < STATES
      population = index // FIRE_CLASSES
      fire = index % FIRE_CLASSES
      return(population, fire)
docs: Convert transition probability matrix index to state parameters.
      
      Parameters
      ----------
      index : int
          The index into the transition probability matrix that corresponds to
          the state parameters.
      
      Returns
      -------
      population, fire : tuple of int
          ``population``, the population abundance class of the threatened
          species. ``fire``, the time in years since last fire.