Mercurial > hg > ddm
view lse_stat_par.m @ 2:e2b116f3b69b
fixed reallocate and pinv_2_fast to work on Octave
added short example very quickly, might not be working properly
author | smusevic |
---|---|
date | Thu, 25 Jul 2013 13:07:07 +0100 |
parents | a4a7e3405062 |
children |
line wrap: on
line source
function lsp = lse_stat_par(sig, krnls, w) nr_krnls = size(krnls,1); sig_mat = repmat(sig,nr_krnls,1); w_mat = repmat(w ,nr_krnls,1); kk = sum( krnls.*conj(krnls).*w_mat,2); ks = sum(sig_mat.*conj(krnls).*w_mat,2); lsp = log(ks/kk*2); end