NumberOfWellConditionedModes
Estimate how many columns of a mode matrix remain numerically well conditioned.
Declaration
N = NumberOfWellConditionedModes(G,varargin)
Parameters
Gmode matrix whose columns are ordered by mode numbervararginreserved for future options
Returns
Nestimated count of usable leading modes
Discussion
This function can become a rate limiting step if used for each set of returned modes. So a good algorithm is necessary. Otherwise we'd just use,
kappa = InternalModes.ConditionNumberAsFunctionOfModeNumber(G);
N = find(diff(diff(log10(kappa))) > 1e-2,1,'first')+2;