function INDX = getOFP(h)
%GETINDEX  Computes OFP index from frequency response.

%   Copyright 1986-2017 The MathWorks, Inc.
[~,~,nf] = size(h);
INDX = zeros(1,nf);
for ct=1:nf
    hf = h(:,:,ct);
    INDX(ct) = ltipack.getTmax(-(hf+hf'),hf'*hf)/2;
end