code: def compute_orders(outputs: np.ndarray, N: int, M: int, omega: int):
      f = np.fft.fft(outputs)
      Sp = np.power(
          np.absolute(f[np.arange(1, math.ceil(N / 2))]) / N, 2
      )
  
      V = 2.0 * np.sum(Sp)
  
      # Calculate first and total order
      D1 = 2.0 * np.sum(Sp[np.arange(1, M + 1) * omega - 1])
      Dt = 2.0 * np.sum(Sp[np.arange(math.floor(omega / 2.0))])
  
      return (D1 / V), (1.0 - Dt / V)
  
file_path: SALib/src/SALib/analyze/fast.py
imports: import math
  import numpy
  from scipy.stats import norm
  from .None import common_args
  from ..util import read_param_file, ResultDict
label_desc: Use image node_id 2 for calling a global function with example usage: compute_orders(outputs, N, M, omega) and returns: unknown,  unknown