SHARE
TWEET

Untitled

a guest Jun 12th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ....
  3. function [W, b] = LS()
  4.         a1 = ann_radbas_run(P, W(1), b(1));
  5.  
  6.         z = a1;
  7.         z($+1, 1:$) = 1;
  8.        
  9.         t = T';
  10.         U = z';
  11.        
  12.         I = eye(size(U, 2), size(U, 2));
  13.         x_star = inv(U'*U + ro*I) * U' * t
  14.        
  15.         W = x_star(1:$-1)';
  16.         b = x_star($)';    
  17.     endfunction
  18.    
  19.     [W2, b2] = LS();
  20.    
  21.     W(2) = W2;
  22.     b(2) = b2;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top