source: proiecte/PPPP/ica/wchange.m @ 94

Last change on this file since 94 was 94, checked in by (none), 14 years ago

PPPP - ica serial implementation

File size: 301 bytes
Line 
1% Calculates stats on most recent weight change - magnitude and angle between
2% old and new weight.
3
4function [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.