docs: def getStateCode(self,state):
          """                
          Calculates the state code for a specific state or set of states.
          We transform the states so that they are nonnegative and take an inner product.
          The resulting number is unique because we use numeral system with a large enough base.
          """
          return np.dot(state-self.minvalues,self.statecode)