Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
constant_sinusoidal_offset¶
- constant_sinusoidal_offset(y)[source]¶
Get constant offset of sinusoidal signal.
This function finds 95 and 5 percentile y values and take an average of them. This method is robust to the dependency on sampling window, i.e. if we sample sinusoidal signal for 2/3 of its period, simple averaging may induce a drift towards positive or negative direction depending on the phase offset.
- Parameters:
y (ndarray) – Array of y values.
- Returns:
Offset value.
- Return type:
float