intersect_ranges_by_weight

intersect_ranges_by_weight(ranges: list[tuple[float | int]], delta: float, threshold: float) tuple[float][source]

Compute intersection of ranges through weight arrays and a threshold.

Parameters:
  • ranges -- List of tuples defining frequency intervals

  • delta -- Frequency step to be used for the intersection

  • threshold -- Threshold to be used for the intersection

Returns:

intersect_range -- Tuple of two numbers defining the intersection