code: def _SB_MotifThree_quantile_hh(X):
      # Shannon entropy of two successive letters in equiprobable 3-letter
      # symbolization.
      indices = np.argsort(X)
      bins = np.zeros(len(X))
      q1 = int(len(X) / 3)
      q2 = q1 * 2
      l1 = np.zeros(q1, dtype=np.int_)
      for i in range(q1):
          l1[i] = indices[i]
      l2 = np.zeros(q1, dtype=np.int_)
      c1 = 0
      for i in range(q1, q2):
          bins[indices[i]] = 1
          l2[c1] = indices[i]
          c1 += 1
      l3 = np.zeros(len(indices) - q2, dtype=np.int_)
      c2 = 0
      for i in range(q2, len(indices)):
          bins[indices[i]] = 2
          l3[c2] = indices[i]
          c2 += 1
  
      found_last = False
      nsum = 0
      for i in range(3):
          if i == 0:
              o = l1
          elif i == 1:
              o = l2
          else:
              o = l3
  
          if not found_last:
              for n in range(len(o)):
                  if o[n] == len(X) - 1:
                      o = np.delete(o, n)
                      break
  
          for n in range(3):
              nsum2 = 0
  
              for v in o:
                  if bins[v + 1] == n:
                      nsum2 += 1
  
              if nsum2 > 0:
                  nsum2 /= len(X) - 1
                  nsum += nsum2 * np.log(nsum2)
  
      return -nsum
  
imports: import math
  import numpy
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 30 for calling a global function with example usage: _SB_MotifThree_quantile_hh(X) and returns: unknown