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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? nnd2n1.m

?? 神經(jīng)網(wǎng)絡(luò)設(shè)計(jì)那本書(shū)的全部源代碼(隨書(shū)是附在軟盤里的)
?? M
字號(hào):
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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产suv一区二区三区88区| 国产寡妇亲子伦一区二区| 日韩在线卡一卡二| 美女看a上一区| 成人福利在线看| 欧美日韩亚洲综合在线| 精品久久久久久久久久久久久久久久久 | 在线综合视频播放| 久久人人97超碰com| 亚洲精品精品亚洲| 麻豆国产欧美一区二区三区| 99久久伊人久久99| 91精品国产麻豆| ㊣最新国产の精品bt伙计久久| 午夜精品久久久久久久久久| 亚洲最快最全在线视频| 五月婷婷色综合| 成人午夜又粗又硬又大| 欧美女孩性生活视频| 国产精品无圣光一区二区| 亚洲成av人片在线| 成人午夜av电影| 欧美一区二区三区影视| 亚洲私人影院在线观看| 久久疯狂做爰流白浆xx| 欧美少妇性性性| 国产精品第四页| 国内精品国产三级国产a久久| 欧美系列日韩一区| 中文子幕无线码一区tr| 激情五月激情综合网| 欧美少妇bbb| 一区二区中文视频| 国产一区二区美女| 91精品在线麻豆| 亚洲欧洲www| 国产成人精品一区二区三区四区 | 午夜国产不卡在线观看视频| 成人小视频在线观看| 日韩精品一区二区三区在线观看| 亚洲高清久久久| 91网站在线观看视频| 欧美国产精品v| 国产原创一区二区| 日韩女优毛片在线| 日韩精品乱码av一区二区| 欧美成va人片在线观看| 亚洲精品伦理在线| 成人网在线播放| 久久久亚洲国产美女国产盗摄 | 亚洲国产精品激情在线观看| 久久电影国产免费久久电影| 欧美精品乱人伦久久久久久| 一卡二卡三卡日韩欧美| 91在线观看地址| 中文字幕不卡在线观看| 国产成人免费xxxxxxxx| 久久久精品欧美丰满| 春色校园综合激情亚洲| 性久久久久久久| 色综合久久久久综合99| 国产精品久久久久久户外露出 | 久久久久久电影| 久久99精品一区二区三区三区| 337p亚洲精品色噜噜| 五月天丁香久久| 欧美日高清视频| 婷婷激情综合网| 欧美精品1区2区3区| 午夜一区二区三区在线观看| 欧美精品成人一区二区三区四区| 亚洲图片有声小说| 欧美美女bb生活片| 奇米精品一区二区三区在线观看| 欧美顶级少妇做爰| 蜜臀精品久久久久久蜜臀 | 国产成人亚洲综合a∨婷婷图片 | 色伊人久久综合中文字幕| 亚洲精品乱码久久久久久久久| 91视视频在线观看入口直接观看www | 国产激情精品久久久第一区二区| 久久久久国色av免费看影院| 丁香婷婷综合激情五月色| 久久久久久久久伊人| 国产精品亚洲午夜一区二区三区| 国产亚洲婷婷免费| 成人av在线播放网址| 538prom精品视频线放| 日韩精品欧美精品| 精品国产伦一区二区三区观看体验 | 精品国产百合女同互慰| 极品美女销魂一区二区三区免费| 久久精品在线观看| 99久久免费视频.com| 一区二区三区不卡视频在线观看| 欧美精品日日鲁夜夜添| 国产自产2019最新不卡| 中文字幕一区二区三区不卡| 欧美三级韩国三级日本一级| 蜜桃久久久久久久| 国产欧美精品国产国产专区| 91麻豆国产精品久久| 亚洲狠狠爱一区二区三区| 日韩精品一区二区在线观看| 岛国一区二区在线观看| 一区二区三区高清不卡| 日韩一级二级三级| 成人听书哪个软件好| 亚洲国产综合人成综合网站| 精品日韩99亚洲| 不卡的av电影| 午夜精品一区在线观看| 国产视频亚洲色图| 91久久国产综合久久| 久久超碰97人人做人人爱| 亚洲日韩欧美一区二区在线| 日韩一二三四区| 成人av电影观看| 日日夜夜精品免费视频| 国产日韩精品一区二区三区在线| 欧美午夜精品一区二区三区| 国产一区视频在线看| 曰韩精品一区二区| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 91精品国产91久久久久久一区二区| 国产一区二区不卡在线| 秋霞国产午夜精品免费视频 | 国产精品久久久久9999吃药| 欧美精品乱码久久久久久按摩| 国产精品 日产精品 欧美精品| 亚洲主播在线播放| 国产日本欧洲亚洲| 欧美日韩在线播放一区| 国产99久久精品| 蜜桃视频第一区免费观看| 亚洲精品一二三区| 久久精品夜夜夜夜久久| 欧美日韩成人综合| 91啪亚洲精品| 国产一区二区成人久久免费影院| 亚洲va天堂va国产va久| 国产精品成人免费精品自在线观看| 91精品免费观看| 91美女蜜桃在线| 国产激情一区二区三区桃花岛亚洲| 偷拍自拍另类欧美| 亚洲欧洲成人自拍| 久久综合九色欧美综合狠狠| 欧美日韩亚洲国产综合| heyzo一本久久综合| 精品亚洲国内自在自线福利| 亚洲成人激情自拍| 亚洲人成网站影音先锋播放| 国产亚洲精品福利| 精品精品欲导航| 555www色欧美视频| 欧美日韩一二区| 在线免费精品视频| 99精品视频在线免费观看| 国产成人精品亚洲777人妖| 激情成人综合网| 久久精品99久久久| 91精品国产乱码| 欧美性猛片aaaaaaa做受| 国产精品综合网| 日韩福利视频网| 亚洲成av人**亚洲成av**| 亚洲三级理论片| 中文字幕视频一区二区三区久| 久久久亚洲综合| 久久久综合网站| 久久日韩精品一区二区五区| 欧美大片拔萝卜| 日韩精品一区二区三区在线播放 | 亚州成人在线电影| 亚洲色图丝袜美腿| 综合欧美亚洲日本| 亚洲精品日日夜夜| 亚洲乱码国产乱码精品精可以看| 中文字幕在线一区| 国产精品视频观看| 国产精品精品国产色婷婷| 国产精品美女久久福利网站| 国产精品久久久久7777按摩 | 欧美亚洲一区三区| 欧美性感一区二区三区| 欧美色网一区二区| 欧美日韩一本到| 欧美一区二区人人喊爽| 欧美岛国在线观看| 久久精品一级爱片| 国产精品理论片在线观看| 亚洲欧洲99久久| 亚洲一区二区三区不卡国产欧美 | 黄网站免费久久| 国产精一区二区三区| 岛国精品在线播放| 一本色道久久加勒比精品| 在线免费观看不卡av| 欧美亚洲综合在线|