check_cola
check_cola(window, hop_size, eps=1e-05)
Checks the Constant Overlap Add (COLA) condition for a given window function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
NDArray[T]
|
The window samples. |
required |
hop_size
|
int
|
The hop size between frames. |
required |
eps
|
float
|
Tolerance for checking the COLA condition. Defaults to 1e-5. |
1e-05
|
Returns:
| Type | Description |
|---|---|
Tuple[bool, float, float]
|
Tuple[bool, float, float]: A 3-tuple containing: (is_cola, normalization_value, epsilon) |
Source code in src/libsegmenter/util/check_cola.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |