SuperletTransform¶
- class SuperletTransform(inputSize, samplingRate, baseCycles, superletOrders, frequencyRange=None, frequencyBins=None, frequencies=None)[source][source]¶
Class used to compute the Superlet Transform of input data.
- This class implements the superlet transform algorithm for time-frequency
analysis as described in Moca et al., 2021.
- clear()[source][source]¶
Clear the transform.
Resets all internal variables to None, freeing memory.
- longestWaveletSize()[source][source]¶
Return the size of the longest wavelet.
- Returns:
Size of the longest wavelet in samples.
- Return type:
- transform(inputData)[source][source]¶
Apply the transform to a buffer or list of buffers.
- Parameters:
inputData (
ndarray) –- An NDarray of input data. Can be a single buffer or a list of
buffers.
- Returns:
The transformed data as a time-frequency representation.
- Return type:
ndarray- Raises:
Exception – If input data size doesn’t match the defined input size for this transform.
- transformOne(inputData, accumulator)[source][source]¶
Apply the superlet transform on a single data buffer.
- Parameters:
inputData (
ndarray) – A 1xInputSize array containing the signal to be transformed.accumulator (
ndarray) – A spectrum to accumulate the resulting superlet transform.
Notes
This method modifies the accumulator array in-place.