Interpolation of the three nearest HRTFs
Pprov
First, 4 possible nearest measurement points are located, choosing the values of j and q which are just lower and higher than the theoretical ones.
Then, one of the point is discarded, so that a triangle surrounding the arrival direction is defined