The time axis in seconds. Must be equidistantly sampled.
Required
window_center
Type:
float
Description:
The center of the window in the same reference time as the time axis.
Required
window_width
Type:
float
Description:
The width of the window.
Required
ramp_width
Type:
float
Description:
The width of the ramp on both sides. Cannot not be larger than half the total width. Using this is an option to discard less of the data.
Optional
window_type
Type:
str
Default value:
'hanning'
Description:
The type of window to use. Currently supports: "hanning".
Optional
sides
Type:
str
Default value:
'both'
Description:
One of "both", "left", "right" - Decides which sides will be tapered.
RETURNS
Return type: np.ndarray
The weighting array. Will have exactly the same shape as t and will be filled with values ranging from 0.0 to 1.0. Element-wise multiplication with this array will effectively window data.
We use cookies to analyze our traffic, but won't track you until explicit consent is given. Using our contact form will create relevant cookies and transmit data to third party services to keep track of your request. Read more about how we use personal information in our Privacy Policy.