We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7f5677 + a161d98 commit 4bb3f92Copy full SHA for 4bb3f92
chunkie/+chnk/+smoother/get_sigs.m
@@ -22,8 +22,8 @@
22
dexpn = exp(-(dr.^2-dmin.^2)./(2*sig0^2));
23
dsignum = sum(dsigj.*dexpn,2);
24
dsigden = sum(dexpn,2);
25
- dsignumx = -dsigj.*dexpn.*(dx./sig0^2);
26
- dsignumy = -dsigj.*dexpn.*(dy./sig0^2);
+ dsignumx = -sum(dsigj.*dexpn.*(dx./sig0^2),2);
+ dsignumy = -sum(dsigj.*dexpn.*(dy./sig0^2),2);
27
dsig = dsignum./dsigden;
28
dsigx = dsignumx./dsigden;
29
dsigy = dsignumy./dsigden;
0 commit comments