Skip to content

Feature/mixing time#175

Draft
gpapadimitri wants to merge 1 commit into
developfrom
feature/mixing_time
Draft

Feature/mixing time#175
gpapadimitri wants to merge 1 commit into
developfrom
feature/mixing_time

Conversation

@gpapadimitri

Copy link
Copy Markdown

Which issue(s) are closed by this pull request?

None #

Changes proposed in this pull request:

  • Add pyrato.parameters.mixing_time, estimating the mixing time from the echo density profile after criterion I of Abel & Huang (2006), with an optional Lindau et al. (2012) regression.
  • Onset is detected per channel; multichannel input is cut at the earliest onset across channels, preserving inter-channel time differences. Returns one value per channel, shaped rir.cshape.
  • Add tests/test_parameters_mixing_time.py (15 cases): shape and type contract, the three error paths, the Lindau affine map and its clipping branch, window-length rounding, and the multichannel cut.

Note: The implementation follows AKtools MATLAB implementation.
Transition times and lindau_regression were cross-checked against AKtool (AKcutIRmixingTime + AKmixingTimeAbel + AKdataBasedMixingTime) on impulse responses, including the room_impulse_response_with_noise.csv in tests/test_data/. The two implementations agree, and those values are used as reference in the test.

…g method with optional perceptual regression from Lindau et al. (2012). Includes tests/test_parameters_mixing_time.py.
@gpapadimitri gpapadimitri added the enhancement New feature or request label Jul 10, 2026
@mberz
mberz changed the base branch from main to develop July 10, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant