intersect_ranges_by_weight

intersect_ranges_by_weight(ranges, delta, threshold)[source]

Compute intersection of ranges through weight arrays and a threshold.

Parameters:
  • ranges (list[tuple[float | int]]) -- List of tuples defining frequency intervals

  • delta (float) -- Frequency step to be used for the intersection

  • threshold (float) -- Threshold to be used for the intersection

Returns:

intersect_range -- Tuple of two numbers defining the intersection

Return type:

tuple[float]