sine_wave
Sine Wave Layer API
This module provides classes to build sine wave layers.
Classes:
-
AddSineWave
–Add sine wave to the input
Classes
AddSineWave
AddSineWave(sample_rate: float = 1, frequency: float = 100, amplitude: float = 0.1, data_format: str | None = None, **kwargs)
Adds a sine wave to the input.
Parameters:
-
sample_rate
(float
, default:1
) –Sample rate of the input.
-
frequency
(float
, default:100
) –Frequency of the sine wave in Hz.
-
amplitude
(float
, default:0.1
) –Amplitude of the sine wave.
-
data_format
(str
, default:None
) –Data format of the input.
Source code in neuralspot_edge/layers/preprocessing/sine_wave.py
Functions
call
Augment single sample with sine wave.