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

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

?? nnd2n1.m

?? 神經網絡的程序說明,以及代碼 神經網絡工具箱應用
?? M
字號:
function nnd2n1(cmd,arg1,arg2,arg3)
%NND2N1 One-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 = 'nnd2n1';
max_t = 0.5;
w_max = 2;
p_max = 4;

% FLAGS
change_func = 0;

% 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:6);            % input and output meters (axes)
  indicators = H(7:9);        % input and output indicators (patches)
  lines = H(10:12);           % lines in neuron function axis
  w_ptr = H(13);              % pointer to weight vector
  b_ptr = H(14);              % pointer to bias value
  f_ptr = H(15);              % pointer to transfer function
  p_ptr = H(16);              % pointer to input vector
  f_menu = H(17);             % transfer function menu
  f_text = H(18);             % neuron heading text
  cross = H(19);              % origon cross lines
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 = 1;
  b = 0;
  p = 0;
  f = 'purelin';
  n = w*p+b;
  a = feval(f,w*p,b);
  title_str = 'Neuron Model Demonstration';
  chapter_str = 'Chapter 2';
  a_lim = [-2 2];
  P = [-p_max:0.1:p_max];
  A = feval(f,w*P,b);
  ind = find(A >= -p_max & A <= p_max);
  P = P(ind);
  A = A(ind);

  % NEW DEMO FIGURE
  fig = nndemof2(me,'DESIGN','One-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 = 340;
  plot(x+[0 100],y-[50 50],...
   'linewidth',4,...
   'color',nnred);
  plot(x+[100 100],y-[49 91],...
   'linewidth',4,...
   'color',nnred);
  nndicon(100,x+100,y-50)
  plot(x+[125 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)
  fill(x+[90 110 110 90],y-[115 115 95 95],nnltyell,...
    'edgecolor',nndkblue)
  text(x+101,y-106,'1',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center');

  text(x-10,y-50,'p',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  text(x+40,y-40,'w',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  text(x+115,y-85,'b',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  text(x+265,y-50,'a',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

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

  plot(x-20-xc,y-20+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[-20 0],y-[10 10],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+xc,y-20+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x-20-xc,y-115-yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[-20 0],y-[125 125],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+xc,y-115-yc,...
   'linewidth',3,...
   'color',nndkblue);
  text(x-10,y+5,'Input',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center');

  plot(x+30-xc,y-20+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[30 280],y-[10 10],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+280+xc,y-20+yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+30-xc,y-115-yc,...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+[30 280],y-[125 125],...
   'linewidth',3,...
   'color',nndkblue);
  plot(x+280+xc,y-115-yc,...
   'linewidth',3,...
   'color',nndkblue);
  f_text = text(x+155,y+5,'Linear Neuron: a = purelin(w*p+b)',...
    'color',nndkblue,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

  text(x+35,y-100,'F:',...
    'fontname','helvetica',...
    'fontweight','bold',...
    'color',nndkblue,...
    'horiz','center',...
    'fontsize',12)

  % PARAMETERS
  y = 160;
  x = 40;
  w_axis = nnsfo('a2','w','','');

  set(w_axis, ...
    'units','points',...
    'position',[x y 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)))

  w_ind = fill([0 0.2 -0.2]*w_max+w,[0 1 1],nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');

  b_axis = nnsfo('a2','b','','');

  set(b_axis, ...
    'units','points',...
    'position',[x y-65 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 y-130, 80 20],...
    'style','popupmenu',...
    'string','Hardlim|Hardlims|Purelin|Satlin|Satlins|Logsig|Tansig',...
    'background',nnmdgray,...
    'callback',[me '(''function'')'],...
    'value',3);

  % NEURON FUNCTION
  y = 40;
  x = 200;
  a_axis = nnsfo('a2','','p','a');
  set(get(a_axis,'xlabel'),...
    'fontsize',12)
  set(get(a_axis,'ylabel'),...
    'fontsize',12)
  set(a_axis, ...
    'units','points',...
    'position',[x y 140 140],...
    'color',nnltyell,...
    'xlim',[-1.05 1.05]*p_max,...
    'xtick',[-4 -2 0 2 4],...
    'ylim',[-1.05 1.05]*p_max,...
    'ytick',[-4 -2 0 2 4])
  cross = plot([-p_max p_max NaN 0 0],[0 0 NaN -p_max p_max],':',...
    'color',nndkblue,...
    'erasemode','none');
  p_line = plot([p p],[-p_max p_max],'--',...
    'color',nnred,...
    'erasemode','none');
  a = feval(f,w*p,b);
  a_line = line([-p_max p],[a a],...
    'color',nnred,...
    'erasemode','none');
  A_line = line(P,A,...
    'color',nndkblue,...
    'erasemode','none',...
    'linewidth',2);
  p_axis = nnsfo('a2','','','');
  set(p_axis, ...
    'units','points',...
    'position',[x y+140 140 15],...
    'color',nnltyell,...
    'xlim',[-1.05 1.05]*p_max,...
    'xtick',[-4 -2 0 2 4],...
    'ylim',[-0.1 1.1],...
    'ytick',[])
  axis('off')
  p_ind = fill([0 0.125 -0.125]*p_max+p,[0 1 1],nnred,...
    'edgecolor',nndkblue,...
    'erasemode','none');

  % BUTTONS
  drawnow % Let everything else appear before 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 = [w_axis b_axis p_axis a_axis];
  indicators = [w_ind b_ind p_ind];
  lines = [p_line a_line A_line];
  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 lines w_ptr b_ptr f_ptr p_ptr ...
    f_menu f_text cross];
  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 weight, bias',...
    'and input by dragging',...
    'the triangular shaped',...
    'indicators.',...
	'',...
	'Pick the transfer',...
	'function with the',...
	'F menu.',...
    '',...
    'Watch the change to',...
    'the neuron function',...
    'and its output.')
    
%==================================================================
% Respond to mouse down.
%
% ME('down')
%==================================================================

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

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

    if (i <= 2)
      if (x >= -1.3*w_max) & (x <= 1.3*w_max) & (y >= 0) & (y <= 1)
        q = i;
        z_max = w_max;
        z = x;
        hide_color = nnmdgray;
        width = 0.2;
        break;
      end
    else
      if (x >= -1.1*p_max) & (x <= 1.1*p_max) & (y >= 0) & (y <= 1)
        q = i;
        z_max = p_max;
        z = x;
        hide_color = nnltgray;
        width = 0.125;
        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),...
      'xdata',[0 1 -1]*width*z_max+z,...
      'facecolor',nnred,...
      'edgecolor',nndkblue)
    set(fig,'WindowButtonMotionFcn',[me '(''down'')']);
    set(fig,'WindowButtonUpFcn',[me '(''up'')']);

    % ALTER VARIABLES
    if (q == 1)
      set(w_ptr,'userdata',z);
      change_func = 1;
    elseif (q == 2)
      set(b_ptr,'userdata',z);
      change_func = 1;
    else
      set(p_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. Sat. Linear Neuron';
  elseif v == 6, f = 'logsig';   new_text = 'Log Sigmoid Neuron';
  elseif v == 7, f = 'tansig';   new_text = 'Tan Sigmoid Neuron';
  elseif v == 8, f = 'radbas';   new_text = 'Log Sigmoid Neuron';
  end

  new_text = [new_text ': a = ' f '(w*p+b)'];
  set(f_text,...
    'color',nnltgray);
  set(f_text,...
    'string',new_text,...
    'color',nndkblue);
  set(f_ptr,'userdata',f);
  change_func = 1;
  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 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

  % HIDE LINES
  set(lines(1:2),...
    'color',nnltyell)

  % HIDE & RECALCULATE FUNCTION IF ALTERED
  if (change_func)
    set(lines(3),...
      'color',nnltyell)
    P = [-p_max:0.1:p_max];
    A = feval(f,w*P,b);
    ind = find(A >= -p_max & A <= p_max);
    P = P(ind);
    A = A(ind);
    set(lines(3),...
      'xdata',P,...
      'ydata',A)
  end

  % REFRESH NEURON FUNCTION & CROSS LINE
  set(lines(3),...
    'color',nndkblue)
  set(cross,...
    'color',nndkblue)

  % SHOW NEW LINES
  set(lines(1),...
    'xdata',[p p],...
    'color',nnred)
  if (a >= -p_max) & (a <= p_max)
    set(lines(2),...
      'xdata',[-p_max p],...
      'ydata',[a a],...
      'color',nnred)
    set(lines(2),...
      'visible','on')
  else
    set(lines(2),...
      'ydata',[a a],...
      'visible','off')
  end
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av电影在线观看不卡| 欧美亚洲国产一区二区三区va| 亚洲免费在线视频| 精品少妇一区二区三区免费观看| 99久久国产综合精品色伊| 奇米在线7777在线精品| 亚洲女与黑人做爰| 国产日韩综合av| 欧美一级二级三级蜜桃| 色丁香久综合在线久综合在线观看| 看电视剧不卡顿的网站| 亚洲国产精品久久人人爱蜜臀| 国产日韩欧美不卡在线| 在线不卡a资源高清| 色噜噜狠狠成人网p站| 成人一区二区三区视频在线观看 | 韩国成人在线视频| 亚洲超丰满肉感bbw| 亚洲情趣在线观看| 中文字幕久久午夜不卡| 欧美精品一区二区三区一线天视频| 欧美视频一二三区| 91国产精品成人| 91亚洲精品乱码久久久久久蜜桃| 国产盗摄精品一区二区三区在线 | 日韩国产精品久久| 一区av在线播放| 亚洲欧美怡红院| 国产精品久久久久四虎| 久久丝袜美腿综合| 2021久久国产精品不只是精品| 宅男噜噜噜66一区二区66| 欧美图片一区二区三区| 91精品福利视频| 91香蕉视频污| 色一情一乱一乱一91av| 91片黄在线观看| 成人av电影在线网| 国产69精品一区二区亚洲孕妇| 国产乱人伦精品一区二区在线观看| 久久精品二区亚洲w码| 激情成人午夜视频| 国内精品写真在线观看| 国产一区美女在线| 国产成人精品aa毛片| 大桥未久av一区二区三区中文| 国产成人综合亚洲网站| 成人中文字幕合集| 色综合久久中文字幕综合网| 色久优优欧美色久优优| 欧美日韩国产经典色站一区二区三区| 欧美另类一区二区三区| 日韩视频永久免费| 久久久www成人免费无遮挡大片| 欧美韩国日本综合| 日韩一区中文字幕| 亚洲观看高清完整版在线观看| 琪琪一区二区三区| 国产一区欧美一区| av不卡在线观看| 欧美性videosxxxxx| 欧美一区二区免费视频| 久久麻豆一区二区| 中文字幕综合网| 午夜电影网亚洲视频| 精品一区二区三区av| av中文字幕不卡| 欧美日韩精品是欧美日韩精品| 精品少妇一区二区三区视频免付费| 日本一区二区电影| 亚洲在线观看免费| 韩国一区二区三区| 在线日韩av片| 久久夜色精品一区| 亚洲理论在线观看| 韩国三级电影一区二区| 色哟哟在线观看一区二区三区| 欧美一级国产精品| 亚洲图片你懂的| 日本美女视频一区二区| 高清国产午夜精品久久久久久| 欧洲人成人精品| 国产欧美日韩视频在线观看| 一卡二卡三卡日韩欧美| 国产精品一线二线三线| 在线观看一区二区视频| 精品粉嫩aⅴ一区二区三区四区| 中文字幕二三区不卡| 亚洲宅男天堂在线观看无病毒| 激情综合色综合久久| 91高清在线观看| 久久久久国色av免费看影院| 亚洲电影一级黄| 大桥未久av一区二区三区中文| 69堂精品视频| 亚洲精品免费视频| 国内精品久久久久影院一蜜桃| 在线精品视频免费观看| 国产人伦精品一区二区| 日韩av在线免费观看不卡| 91原创在线视频| 国产女人水真多18毛片18精品视频| 亚洲制服丝袜一区| 99国产精品一区| 国产欧美日韩在线视频| 日本成人在线电影网| 色婷婷久久一区二区三区麻豆| 精品国精品国产| 天天影视网天天综合色在线播放| eeuss鲁片一区二区三区在线看 | 综合久久一区二区三区| 狠狠网亚洲精品| 91精品国产91久久久久久最新毛片 | 不卡的av在线| 久久精品欧美一区二区三区麻豆| 日本欧美加勒比视频| 在线影院国内精品| 亚洲色图视频网站| 成人av在线电影| 欧美激情艳妇裸体舞| 国产精品中文字幕日韩精品| 精品粉嫩超白一线天av| 久久er99热精品一区二区| 欧美一区二区三区性视频| 午夜精品123| 欧美精品一卡二卡| 亚洲成a人在线观看| 欧美色图一区二区三区| 亚洲精品国产成人久久av盗摄| 色综合久久久久久久久久久| 国产精品亲子乱子伦xxxx裸| 国产99精品国产| 国产精品国产三级国产a| 成人免费高清视频| 国产精品久久久久一区| 99精品欧美一区| 亚洲精品网站在线观看| 日本黄色一区二区| 亚洲一线二线三线久久久| 91精品福利视频| 亚洲va国产va欧美va观看| 欧美精品乱码久久久久久按摩| 亚洲成人第一页| 日韩一卡二卡三卡四卡| 久久国产欧美日韩精品| 亚洲精品一区二区三区影院| 国产精品一区二区三区99 | 日韩福利视频网| 欧美电影免费观看高清完整版在线观看| 亚洲大片免费看| 日韩免费性生活视频播放| 国产一区中文字幕| 国产精品久久久久毛片软件| 91免费视频大全| 午夜精品福利一区二区三区av| 91精品福利在线一区二区三区| 美女脱光内衣内裤视频久久影院| 日韩视频免费观看高清完整版 | 精品国产3级a| 成人黄色小视频| 亚洲综合色自拍一区| 6080亚洲精品一区二区| 精品一区二区三区在线视频| 久久人人爽人人爽| 91麻豆自制传媒国产之光| 亚洲不卡av一区二区三区| 欧美精品一区二区三区很污很色的 | 精品国产污污免费网站入口| 国产精品69毛片高清亚洲| 亚洲精品美腿丝袜| 日韩欧美美女一区二区三区| 风流少妇一区二区| 午夜一区二区三区视频| 精品免费99久久| 一本久久a久久精品亚洲| 免费视频最近日韩| 中文字幕亚洲综合久久菠萝蜜| 欧美三级电影网| 国产成人aaa| 日韩国产在线观看| 亚洲成人三级小说| 久久综合国产精品| 在线观看免费亚洲| 国产精品自拍网站| 日韩黄色片在线观看| 国产精品久久久久aaaa| 欧美一区二区三区思思人| 91在线高清观看| 国产精品资源站在线| 亚洲自拍偷拍欧美| 国产欧美久久久精品影院| 欧美精品久久99| 91蝌蚪porny| 国产馆精品极品| 日韩一区欧美二区| 亚洲精品高清在线| 国产欧美精品在线观看| 欧美一级欧美三级| 欧美日韩在线观看一区二区| 国产成人啪免费观看软件 |