watex.methods.em.EMAP.freqInterpolation#

static EMAP.freqInterpolation(y, /, buffer=None, kind='freq')[source]#

Interpolate frequency in frequeny buffer range.

Parameters:
  • y – array-like, shape(N, ) - Can be a frequency array or periods note that the frequency is not in log10 Hz.

  • buffer – list of maximum and minimum frequency. It should contains only two values. If None, the max and min frequencies are used

  • kind – str type of given data. Can be ‘period’ if the value is given as periods or ‘frequency’ otherwise. Any other value should be considered as a frequency values.

Returns:

array_like, shape (N2, ) New interpolated frequency with N2 size

Example:
>>> from watex.methods.em import Processing
>>> pobj = Processing().fit('data/edis')
>>> f = getfullfrequency (pobj.ediObjs_)
>>> buffer = [5.86000e+04, 1.6300e+01]
>>> f
... array([7.00000e+04, 5.88000e+04, 4.95000e+04, 4.16000e+04, 3.50000e+04,
       2.94000e+04, 2.47000e+04, 2.08000e+04, 1.75000e+04, 1.47000e+04,
       ...
       2.75000e+01, 2.25000e+01, 1.87500e+01, 1.62500e+01, 1.37500e+01,
       1.12500e+01, 9.37500e+00, 8.12500e+00, 6.87500e+00, 5.62500e+00])
>>> new_f = freqInterpolation(f, buffer = buffer)
>>> new_f
... array([5.88000000e+04, 4.93928459e+04, 4.14907012e+04, 3.48527859e+04,
       2.92768416e+04, 2.45929681e+04, 2.06584471e+04, 1.73533927e+04,
       ...
       2.74153120e+01, 2.30292565e+01, 1.93449068e+01, 1.62500000e+01])