亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nnd2n2.m

?? Martin T.Hagan等著,戴葵等譯,神經網絡設計,機械工業出版社,一書的所有例程
?? M
字號:
function nnd2n2(cmd,arg1,arg2,arg3)
%NND2N2 Two-input neuron demonstration.
%
%	This demonstration requires either the MININNET functions
%	on the NND disk or the Neural Network Toolbox.

% First Version, 8-31-95.

%==================================================================

% CONSTANTS
me = 'nnd2n2';
max_t = 0.5;
w_max = 2;
p_max = 1;
n_max = 6;
a_max = 6;

% DEFAULTS
if nargin == 0, cmd = ''; else cmd = lower(cmd); end

% FIND WINDOW IF IT EXISTS
fig = nnfgflag(me);
if length(get(fig,'children')) == 0, fig = 0; end
  
% GET WINDOW DATA IF IT EXISTS
if fig
  H = get(fig,'userdata');
  fig_axis = H(1);            % window axis
  desc_text = H(2);           % handle to first line of text sequence
  meters = H(3:9);            % input and output meters (axes)
  indicators = H(10:16);      % input and output indicators (patches)
  w_ptr = H(17);              % pointer to weight vector
  b_ptr = H(18);              % pointer to bias value
  f_ptr = H(19);              % pointer to transfer function
  p_ptr = H(20);              % pointer to input vector
  f_menu = H(21);             % transfer function menu
  f_text = H(22);             % neuron heading text
  f_text2 = H(23);            % neuron function text
end

%==================================================================
% Activate the window.
%
% ME() or ME('')
%==================================================================

if strcmp(cmd,'')
  if fig
    figure(fig)
    set(fig,'visible','on')
  else
    feval(me,'init')
  end

%==================================================================
% Close the window.
%
% ME() or ME('')
%==================================================================

elseif strcmp(cmd,'close') & (fig)
  delete(fig)

%==================================================================
% Initialize the window.
%
% ME('init')
%==================================================================

elseif strcmp(cmd,'init') & (~fig)

  % CHECK FOR TRANSFER FUNCTIONS
  if ~nnfexist(me), return, end

  % CONSTANTS
  w = [0.5 -0.5]*w_max;
  b = [0];
  p = [0; 0];
  f = 'purelin';
  n = w*p+b;
  a = feval(f,w*p,b);
  title_str = 'Neuron Model Demonstration';
  chapter_str = 'Chapter 2';

  % NEW DEMO FIGURE
  fig = nndemof2(me,'DESIGN','Two-Input Neuron','','Chapter 2');
  set(fig, ...
    'windowbuttondownfcn',nncallbk(me,'down'), ...
    'BackingStore','off',...
    'nextplot','add');
  H = get(fig,'userdata');
  fig_axis = H(1);
  desc_text = H(2);

  % ICON
  nndicon(2,458,363,'shadow')

  % NEURON DIAGRAM
  x = 60;
  y = 230;
  plot(x+[0 100 0],y-[0 50 100],...
   'linewidth',4,...
   'color',nnred);
  plot(x+[100 100],y-[49 112],...
   'linewidth',4,...
   'color',nnred);
  nndicon(100,x+100,y-50)
  plot(x+[125 136],y-[50 50],...
   'linewidth',4,...
   'color',nnred);
  plot(x+[160 185],y-[50 50],...
   'linewidth',4,...
   'color',nnred);
  plot(x+[200 250],y-[50 50],...
   'linewidth',4,...
   'color',nnred);
  plot(x+[240 250 240],y-[40 50 60],...
   'linewidth',4,...
   'color',nnred);
  nndicon(101,x+200,y-50)

  deg = pi/180;
  angle = [0:5:90]*deg;
  xc = cos(angle)*10;
  yc = sin(angle)*10;

  plot(x-20-xc,y+70+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[-20 0],y+[80 80],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+xc,y+70+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x-20-xc,y-160-yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[-20 0],y-[170 170],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+xc,y-160-yc,...
   'linewidth',3,...
   'color',nndkblue);
  text(x-10,y+95,'Input',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center');

  plot(x+30-xc,y+70+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[30 280],y+[80 80],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+280+xc,y+70+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+30-xc,y-160-yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[30 280],y-[170 170],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+280+xc,y-160-yc,...
   'linewidth',3,...
   'color',nndkblue);
  f_text = text(x+155,y+95,'Linear Neuron',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  func_str = sprintf('a = %s(w*p+b) = %g',f,a);
  f_text2 = text(x+155,y-190,'a = purelin(w*p+b)',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

  text(x+155,y+45,'F',...
    'fontname','helvetica',...
    'fontweight','bold',...
    'color',nndkblue,...
    'horiz','center',...
    'fontsize',12)

  % SIGNALS
  p1_axis = nnsfo('a2','p(1)','','');
  set(p1_axis, ...
    'units','points',...
    'position',[x-20 y-35 20 70],...
    'color',nnltyell,...
    'xlim',[-0.3 1.3],...
    'xtick',[],...
    'ylim',[-1.3 1.3]*p_max,...
    'ytick',[-1 -0.5 0 0.5 1]*p_max,...
    'yticklabels',str2mat(num2str(-p_max),'','0','',num2str(p_max)))
  p1_ind = fill([0 1 1],[0 0.2 -0.2]*p_max+p(1),nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');
  p2_axis = nnsfo('a2','p(2)','','');
  set(p2_axis, ...
    'units','points',...
    'position',[x-20 y-135 20 70],...
    'color',nnltyell,...
    'xlim',[-0.3 1.3],...
    'xtick',[],...
    'ylim',[-1.3 1.3]*p_max,...
    'ytick',[-1 -0.5 0 0.5 1]*p_max,...
    'yticklabels',str2mat(num2str(-p_max),'','0','',num2str(p_max)))
  p2_ind = fill([0 1 1],[0 0.2 -0.2]*p_max+p(2),nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');
  n_axis = nnsfo('a2','n','','');
  set(n_axis, ...
    'units','points',...
    'position',[x+140 y-85 20 70],...
    'color',nnltyell,...
    'xlim',[-0.3 1.3],...
    'xtick',[],...
    'ylim',[-1.3 1.3]*n_max,...
    'ytick',-n_max:2:n_max,...
    'yticklabels',str2mat(num2str(-n_max),'','','','','',num2str(n_max)))
  n_ind = fill([0 1 1],[0 0.2 -0.2]*n_max+n,nndkblue,...
    'edgecolor','none',...
    'erasemode','none');
  a_axis = nnsfo('a2','a','','');
  set(a_axis, ...
    'units','points',...
    'position',[x+270 y-120 20 140],...
    'color',nnltyell,...
    'xlim',[-0.3 1.3],...
    'xtick',[],...
    'ylim',[-1.15 1.15]*a_max,...
    'ytick',[-a_max:1:a_max],...
    'yticklabels',...
       ['-6';'  ';'-4';'  ';'-2';'  ';'0 ';'  ';'2 ';'  ';'4 ';'  ';'6 '])
  a_ind = fill([0 1 1],[0 0.2 -0.2]*a_max/2+a,nndkblue,...
    'edgecolor','none',...
    'erasemode','none');
  bi_axis = nnsfo('a2','','','');
  set(bi_axis, ...
    'units','points',...
    'position',[x+90 y-135 20 20],...
    'color',nnltyell,...
    'xlim',[-1 1],...
    'xtick',[],...
    'ylim',[-1 1],...
    'ytick',[])
  bi_ind = text(0,0,'1',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center');

  % PARAMETERS
  w1_axis = nnsfo('a2','w(1,1)','','');
  set(w1_axis, ...
    'units','points',...
    'position',[x+10 y+15 70 20],...
    'color',nnmdgray,...
    'ylim',[-0.3 1.3],...
    'ytick',[],...
    'xlim',[-1.3 1.3]*w_max,...
    'xtick',[-1 -0.5 0 0.5 1]*w_max,...
    'xticklabels',str2mat(num2str(-w_max),'','0','',num2str(w_max)))
  w1_ind = fill([0 0.2 -0.2]*w_max+w(1),[0 1 1],nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');
  w2_axis = nnsfo('a2','w(1,2)','','');
  set(w2_axis, ...
    'units','points',...
    'position',[x+10 y-135 70 20],...
    'color',nnmdgray,...
    'ylim',[-0.3 1.3],...
    'ytick',[],...
    'xlim',[-1.3 1.3]*w_max,...
    'xtick',[-1 -0.5 0 0.5 1]*w_max,...
    'xticklabels',str2mat(num2str(-w_max),'','0','',num2str(w_max)))
  w2_ind = fill([0 0.2 -0.2]*w_max+w(2),[0 1 1],nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');
  b_axis = nnsfo('a2','b','','');
  set(b_axis, ...
    'units','points',...
    'position',[x+120 y-135 70 20],...
    'color',nnmdgray,...
    'ylim',[-0.3 1.3],...
    'ytick',[],...
    'xlim',[-1.3 1.3]*w_max,...
    'xtick',[-1 -0.5 0 0.5 1]*w_max,...
    'xticklabels',str2mat(num2str(-w_max),'','0','',num2str(w_max)))
  b_ind = fill([0 0.2 -0.2]*w_max+b,[0 1 1],nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');
  f_menu = uicontrol(...
    'units','points',...
    'position',[x+115 y+15, 80 20],...
    'style','popupmenu',...
    'string','Hardlim|Hardlims|Purelin|Satlin|Satlins|Logsig|Tansig',...
    'background',nnmdgray,...
    'callback',[me '(''function'')'],...
    'value',3);

  % SLIDE BARS
  drawnow % Let everything else appear before buttons 

  % BUTTONS
  uicontrol(...
    'units','points',...
    'position',[400 110 60 20],...
    'string','Contents',...
    'callback','nndtoc')
  uicontrol(...
    'units','points',...
    'position',[400 75 60 20],...
    'string','Close',...
    'callback',[me '(''close'')'])

  % DATA POINTERS
  meters = [p1_axis p2_axis w1_axis w2_axis b_axis n_axis a_axis];
  indicators = [p1_ind p2_ind w1_ind w2_ind b_ind n_ind a_ind];
  w_ptr = uicontrol('visible','off'); set(w_ptr,'userdata',w);
  b_ptr = uicontrol('visible','off'); set(b_ptr,'userdata',b);
  f_ptr = uicontrol('visible','off'); set(f_ptr,'userdata',f);
  p_ptr = uicontrol('visible','off'); set(p_ptr,'userdata',p);

  % SAVE WINDOW DATA AND LOCK
  H = [fig_axis desc_text meters indicators w_ptr b_ptr f_ptr p_ptr ...
    f_menu f_text f_text2];
  set(fig,'userdata',H,'nextplot','new')

  % INSTRUCTION TEXT
  feval(me,'instr');

  % LOCK WINDOW
  set(fig,...
   'nextplot','new',...
   'color',nnltgray);

  nnchkfs;

%==================================================================
% Display the instructions.
%
% ME('instr')
%==================================================================

elseif strcmp(cmd,'instr') & (fig)
  nnsettxt(desc_text,...
    'Alter the input values',...
    'by clicking & dragging',...
    'the triangle indicators.',...
    '',...
    'Alter the weights and',...
    'bias in the same way.',...
    'Use the menu to pick',...
    'a transfer function.',...
	'',...
	'Pick the transfer',...
	'function with the',...
	'F menu.',...
    '',...
    'The net input and the',...
    'output will respond to',...
    'each change.')
    
%==================================================================
% Respond to mouse down.
%
% ME('down')
%==================================================================

elseif strcmp(cmd,'down') & (fig) & (nargin == 1)

  q = 0;
  for i=1:5
    pt = get(meters(i),'currentpoint');
    x = pt(1);
    y = pt(3);

    if (i <= 2)
      if (y >= -1.3*p_max) & (y <= 1.3*p_max) & (x >= 0) & (x <= 1)
        q = i;
        data = 'ydata';
        z_max = p_max;
        z = y;
        hide_color = nnltyell;
        break;
      end
    else
      if (x >= -1.3*w_max) & (x <= 1.3*w_max) & (y >= 0) & (y <= 1)
        q = i;
        data = 'xdata';
        z_max = w_max;
        z = x;
        hide_color = nnmdgray;
        break;
      end
    end
  end

  if (q)
    set(fig,'pointer','crosshair')
    z = min(z_max,max(-z_max,z));
    set(indicators(q),...
      'facecolor',hide_color,...
      'edgecolor',hide_color)
    set(indicators(q),...
      data,[0 0.2 -0.2]*z_max+z,...
      'facecolor',nnred,...
      'edgecolor',nndkblue)
    set(fig,'WindowButtonMotionFcn',[me '(''down'')']);
    set(fig,'WindowButtonUpFcn',[me '(''up'')']);

    % ALTER VARIABLES
    if (q <= 2)
      p = get(p_ptr,'userdata');
      p(q) = z;
      set(p_ptr,'userdata',p);
    elseif (q <= 4)
      w = get(w_ptr,'userdata');
      w(q-2) = z;
      set(w_ptr,'userdata',w);
    else
      set(b_ptr,'userdata',z);
    end

    cmd = 'update';
  else
    set(fig,'pointer','arrow')
  end

%==================================================================
% Respond to mouse up.
%
% ME('up')
%==================================================================

elseif strcmp(cmd,'up') & (fig) & (nargin == 1)

  set(fig,...
    'WindowButtonMotionFcn','',...
    'pointer','arrow')

%==================================================================
% Respond to function menu.
%
% ME('function')
%==================================================================

elseif strcmp(cmd,'function') & (fig) & (nargin == 1)

  v = get(f_menu,'value');

  if     v == 1, f = 'hardlim';  new_text = 'Hard Limit Neuron';
  elseif v == 2, f = 'hardlims'; new_text = 'Sym. Hard Limit Neuron';
  elseif v == 3, f = 'purelin';  new_text = 'Linear Neuron';
  elseif v == 4, f = 'satlin';   new_text = 'Saturating Linear Neuron';
  elseif v == 5, f = 'satlins';  new_text = 'Sym. Saturating Linear Neuron';
  elseif v == 6, f = 'logsig';   new_text = 'Log Sigmoid Neuron';
  elseif v == 7, f = 'tansig';   new_text = 'Tan Sigmoid Neuron';
  end
  
  set(f_text,...
    'color',nnltgray);
  set(f_text,...
    'string',new_text,...
    'color',nndkblue);
  set(f_text2,...
    'color',nnltgray);
  set(f_text2,...
    'string',['a = ' f '(w*p+b)'],...
    'color',nndkblue)
  set(f_ptr,'userdata',f);
  cmd = 'update';

%==================================================================
end

%==================================================================
% Respond to request to update displays.
%
% ME('update')
%==================================================================

if strcmp(cmd,'update') & (fig)
  
  % GET DATA
  w = get(w_ptr,'userdata');
  b = get(b_ptr,'userdata');
  f = get(f_ptr,'userdata');
  p = get(p_ptr,'userdata');

  % UPDATE NET INPUT
  n = w*p+b;
  set(indicators(6),...
    'facecolor',nnltyell)
  set(indicators(6),...
    'ydata',[0 0.2 -0.2]*n_max+n,...
    'facecolor',nndkblue)

  % UPDATE OUTPUT
  n = w*p+b;
  if strcmp(f,'satlin')
    a = (~((n < 0) | (n > 1))).*n + (n > 1);
  elseif strcmp(f,'satlins')
    a = (~((n < -1) | (n > 1))).*n + (n > 1) - (n < -1);
  else
    a = feval(f,n);
  end

  set(indicators(7),...
    'facecolor',nnltyell)
  set(indicators(7),...
    'ydata',[0 0.2 -0.2]*a_max/2+a,...
    'facecolor',nndkblue)
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品欧美一区二区三区不卡 | 亚洲国产精品久久久久秋霞影院 | 美女久久久精品| 日韩亚洲欧美成人一区| 欧美精品一区二区三区一线天视频| 欧美久久高跟鞋激| 久久久久国产精品麻豆| 国产精品全国免费观看高清 | 久久www免费人成看片高清| 蜜臀久久99精品久久久久宅男| 久久99精品国产麻豆不卡| 高清成人免费视频| 欧美三级日本三级少妇99| 精品理论电影在线| 亚洲欧美日韩一区| 日本不卡123| 成人av在线资源| 日韩欧美专区在线| 一区二区三区丝袜| 在线不卡的av| 欧美影视一区在线| 国产精品视频yy9299一区| 亚洲一级二级在线| 国产91高潮流白浆在线麻豆| 欧美日韩免费高清一区色橹橹| 国产日韩欧美不卡在线| 日本欧美一区二区| 欧美性感一类影片在线播放| 久久久久久久久久久久久女国产乱 | 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 欧美男男青年gay1069videost| 日韩精品电影在线| 欧美系列亚洲系列| 性久久久久久久| 色综合亚洲欧洲| 亚洲精品成a人| 欧美夫妻性生活| 性做久久久久久免费观看| 欧美午夜一区二区| 亚洲最大的成人av| 精品视频在线看| 蜜桃视频一区二区三区| 精品国产凹凸成av人网站| 激情综合网av| 中文字幕中文字幕一区二区| 91色在线porny| 亚洲国产日韩精品| 欧美一区二区免费视频| 国内久久婷婷综合| 中文字幕欧美日本乱码一线二线| 国产伦精品一区二区三区视频青涩| 国产亚洲短视频| aaa欧美色吧激情视频| 午夜久久电影网| 国产精品天美传媒沈樵| 欧美日韩一区精品| 国产成人免费视频网站| 亚洲精品成a人| 国产免费久久精品| 91精品国产综合久久精品图片| 国产乱码一区二区三区| 亚洲在线观看免费视频| 久久久久一区二区三区四区| 欧美视频一区二区| av激情亚洲男人天堂| 久久99精品国产麻豆婷婷| 亚洲成a人v欧美综合天堂下载| 久久久三级国产网站| 欧美一区二区三区四区高清| 色天使色偷偷av一区二区| 国产盗摄女厕一区二区三区| 日韩国产欧美在线观看| 亚洲午夜精品在线| 亚洲色图在线视频| 久久久精品免费观看| 欧美zozozo| 国产亚洲欧美在线| 国产亚洲综合色| 欧美国产精品中文字幕| 久久精品免视看| 国产午夜精品福利| 久久精品欧美一区二区三区不卡| www国产精品av| 欧美哺乳videos| 国产人久久人人人人爽| 欧美国产成人在线| 中文字幕一区二区三区在线播放| 欧美经典一区二区三区| 久久久久久久久久美女| 国产精品成人免费| 一片黄亚洲嫩模| 韩日av一区二区| 成人国产电影网| 欧美影院一区二区三区| 亚洲精品一区在线观看| 日韩一区二区三区视频在线| 成人免费va视频| 欧美日韩国产色站一区二区三区| 日韩欧美另类在线| 国产精品久久久久久久久久免费看| 亚洲天堂av一区| 久久99精品久久久久| 99国产欧美久久久精品| 欧美视频精品在线| 精品999在线播放| 午夜视频一区在线观看| 成人黄页毛片网站| 欧美疯狂性受xxxxx喷水图片| 国产日韩欧美一区二区三区综合| 亚洲伊人伊色伊影伊综合网| 久久99精品久久久久久动态图| a在线播放不卡| 中文字幕欧美日本乱码一线二线| 亚洲成av人片在线| 色婷婷精品大在线视频| 久久久久久综合| 美洲天堂一区二卡三卡四卡视频| 欧洲激情一区二区| 亚洲黄色片在线观看| 丁香六月久久综合狠狠色| 日韩片之四级片| 国产一区二区三区久久悠悠色av| 日韩欧美一卡二卡| 蜜臀av亚洲一区中文字幕| 欧美一区二区三区四区在线观看 | 欧美最猛性xxxxx直播| 国产精品久久一级| 日本韩国一区二区三区视频| 亚洲色图在线播放| 欧美亚洲高清一区| 成人av影院在线| 亚洲视频在线观看一区| 91麻豆国产福利在线观看| 国产精品人成在线观看免费| av亚洲产国偷v产偷v自拍| 亚洲欧美日韩久久| 在线观看亚洲一区| 美女网站一区二区| 中文字幕第一区| 欧美体内she精视频| 美女精品自拍一二三四| 中文字幕一区二区三区四区 | 亚洲色图在线视频| 日韩精品一区二区三区老鸭窝 | 欧美人成免费网站| 99亚偷拍自图区亚洲| 首页欧美精品中文字幕| 久久久久亚洲蜜桃| 欧洲一区在线观看| 国产一区 二区| 亚洲成人高清在线| 国产精品色噜噜| 欧美一级日韩不卡播放免费| 国产成人免费视频网站 | 国产激情一区二区三区| 亚洲免费av观看| 国产视频在线观看一区二区三区| 日本久久电影网| 91蝌蚪porny九色| 韩国av一区二区三区四区| 亚洲成av人在线观看| 亚洲欧美日韩国产另类专区| 久久精品人人做人人爽97| 久久这里只有精品首页| 欧美xxxxxxxx| 欧美v国产在线一区二区三区| 3751色影院一区二区三区| 欧美日韩国产高清一区二区三区| 99re免费视频精品全部| 岛国精品一区二区| 中文字幕亚洲区| 国产精品热久久久久夜色精品三区| 欧美一级免费观看| 婷婷久久综合九色国产成人| 欧美日韩一卡二卡三卡| 欧美系列日韩一区| 日韩一区二区电影| 久久先锋影音av| 中文字幕视频一区| 一区二区三区中文字幕电影| 欧美日本一区二区| www一区二区| 中文字幕一区二区三区在线观看| 综合电影一区二区三区 | 国产精品久久久久久久久果冻传媒| 国产精品久久久久一区| 一区二区三区久久久| 五月综合激情日本mⅴ| 国产精品一区二区不卡| 99在线视频精品| 亚洲精品一区二区三区福利| 久久九九久久九九| 有码一区二区三区| 国产成人精品免费网站| 91福利在线免费观看| 26uuu成人网一区二区三区| 亚洲免费在线观看视频| 蜜桃av一区二区| 欧美日韩在线综合| 亚洲欧美日韩小说|