hotstepper.Sequency.sequency_spectrum

Sequency.sequency_spectrum(input_values, pad_mode='constant', **kargs)

A convenient Sequency power spectrum representation of the input_values data, this will be normalised by the sum of squares of all amplitude values, thus representing a proportional power spectrum.

Parameters
  • input_values (array_like) – The data (best to use step change values) to be analysed to generate a sequency power spectrum.

  • pad_mode ({None, 'edge','constant'}, Optional) –

    This is how the input data is to be padded to match the requirement of each Walsh basis being a length which is a power of 2.

    Note

    The allowable parameters are the same as those for the Numpy.pad function and therefore any valid mode string or function can be used here and it will be passed to the Numpy.pad function.

  • kargs (any) – Key-value arguments that will be passed to the Numpy.pad function, please see the Numpy.pad documentation for further details of allowable kargs for this function.

Returns

sequencies, spectrum_amplitudes, walsh function range

Return type

tuple(array, array, int)