source:
proiecte/PPPP/ica/wchange.m
@
110
Last change on this file since 110 was 94, checked in by , 14 years ago | |
---|---|
File size: 301 bytes |
Line | |
---|---|
1 | % Calculates stats on most recent weight change - magnitude and angle between |
2 | % old and new weight. |
3 | |
4 | function [change,delta,angle]=wchange(w,oldw,olddelta) |
5 | [M,N]=size(w); delta=reshape(oldw-w,1,M*N); |
6 | change=delta*delta'; |
7 | angle=acos((delta*olddelta')/sqrt((delta*delta')*(olddelta*olddelta'))); |
Note: See TracBrowser
for help on using the repository browser.