Applies to version: 1.1.0

View the code

Go to function

ZIEGELWANGER2013 - Direction-continuous model of time-of-arrival (TOA) in HRTFs (simple)



Input parameters

Obj SOFA object
method (Optional) Select one of the estimation methods
model (Optional) Correct estimated toa, using geometrical TOA-Model. If \(model=0\) use TOA estimated, if \(model=1\) use TOA modeled (default).
p0_onaxis (optional) Starting values for lsqcurvefit

Output parameters

Obj SOFA Object

System Message: WARNING/2 (<string>, line 34)

Option list ends without a blank line; unexpected unindent.
data matrix with time of arrival (TOA) for each impulse response (IR):
estimated on-axis model-parameters
estimated off-axis model-parameters


Estimates the Time-of-Arrival for each measurement in Obj (SOFA) and corrects the results with a geometrical model of the head.

The value of method is an integer choosing one of the following methods. XXX Explain for each method a little about how they work:

  1. Threshold-Detection
  2. Centroid of squared IR
  3. Mean Groupdelay
  4. Minimal-Phase Cross-Correlation (Max) (default)


  1. SOFA API from for Matlab (in e.g. thirdparty/SOFA)
  2. Optimization Toolbox for Matlab
  3. Data in hrtf/ziegelwanger2013


To calculate the model parameters for the on-axis time-of-arrival model (p_onaxis) and for the off-axis time-of-arrival model (p_offaxis) for a given HRTF set (SOFA object, 'Obj') with the minimum-phase cross-correlation method, use:



P. Majdak and H. Ziegelwanger. Continuous-direction model of the broadband time-of-arrival in the head-related transfer functions. In ICA 2013 Montreal, volume 19, page 050016, Montreal, Canada, 2013. ASA. [ DOI ]

H. Ziegelwanger and P. Majdak. Modeling the broadband time-of-arrival of the head-related transfer functions for binaural audio. In Proceedings of the 134th Convention of the Audio Engineering Society, page 7, Rome, 2013.