Commit c28e5cb4 authored by Marco Berzborn's avatar Marco Berzborn
Browse files

ignore case in norm selection, multiply by sqrt(2-dirac_delta_m) in

semi-normalized legendre, that is analogous to ambix
parent d1bbe0bf
......@@ -107,7 +107,7 @@ end
% compose the spherical harmonic base functions
Y = Pnm .* exp_term;
if strcmp(sArgs.norm, 'ambix')
if any(strcmpi(sArgs.norm, {'ambix','schmidt','sch','semi-normalized'}))
% multiply by sqrt(2-delta_m)
mask = ~(m | zeros(size(m)));
Y(:,mask) = Y(:,mask) * sqrt(2);
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