Commit 607dd1a3 authored by Philipp Schäfer's avatar Philipp Schäfer

itaHRTF

-bugfix in ILD() method: now always takes sum along first dimension when using the filter option
parent ff0c655e
......@@ -969,8 +969,8 @@ classdef itaHRTF < itaAudio
pLeftFiltered = pLeft(usedBins, :);
pRightFiltered = pRight(usedBins, :);
pLeftIntegral = sum( abs(pLeftFiltered).^2 );
pRightIntegral = sum( abs(pRightFiltered).^2 );
pLeftIntegral = sum( abs(pLeftFiltered).^2, 1 );
pRightIntegral = sum( abs(pRightFiltered).^2, 1 );
ILD = 10*log10( pLeftIntegral ./ pRightIntegral );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment