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

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

?? nnd13uh.m

?? 神經網絡的程序說明,以及代碼 神經網絡工具箱應用
?? M
?? 第 1 頁 / 共 2 頁
字號:
function nnd13uh(cmd,arg1,arg2,arg3)
%NND13UH Unsupervised Hebb demonstration.
%
%	This demonstration requires either the MININNET functions
%	on the NND disk or the Neural Network Toolbox.

% First Version, 8-31-95.

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

% CONSTANTS
me = 'nnd13uh';
Fs = 8192;
pause1 = 0.7;
pause2 = 0.1;

% 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
  lines = H(3:4);          % belt circle lines
  fruit_indicator = H(5);  % fruit entrance indicator
  top_indicator = H(6);    % top exit indicator
  bottom_indicator = H(7); % bottom exit indicator;
  sounds = H(8:15);        % pointers to sounds
  angle_ptr = H(16);       % angle (deg) of lines in conveyer ends
  fruit_ptr = H(17);       % pointer to fruit shape
  arrows = H(21:22);       % handles to arrows
  rb1 = H(23);             % Working radio button
  rb2 = H(24);             % Not working radio button
  cross = H(25);           % Not working cross
  p1_ptr = H(26);          % Input #1
  p2_ptr = H(27);          % Input #2
  a_ptr = H(28);           % Output
  W2_ptr = H(29);          % Weights #2
  p1_box = H(30);
  p1_text = H(31);
  p2_box = H(32);
  p2_text = H(33);
  a_box = H(34);
  a_text = H(35);
  go_button = H(36);
  mode_ptr = H(37);
  W2_box = H(38);
  W2_text = H(39);
  n_box = H(40);
  n_text = H(41);
  mode = get(mode_ptr,'userdata');
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

  % NEW DEMO FIGURE
  fig = nndemof2(me,'DESIGN','Unsupervised Hebb','','Chapter 13');

  set(fig, ...
    'windowbuttondownfcn',nncallbk(me,'down'), ...
    'BackingStore','off',...
    'nextplot','add');
  H = get(fig,'userdata');
  fig_axis = H(1);
  desc_text = H(2);

  % SOUND POINTERS
  wind = uicontrol('visible','off','userdata',nndsnd(3));
  knock = uicontrol('visible','off','userdata',nndsnd(5));
  scan = uicontrol('visible','off','userdata',nndsnd(1));
  classify = uicontrol('visible','off','userdata',nndsnd(4));
  blip = uicontrol('visible','off','userdata',nndsnd(6));
  bloop = uicontrol('visible','off','userdata',nndsnd(7));
  blp = uicontrol('visible','off','userdata',nndsnd(9));
  tribble = uicontrol('visible','off','userdata',nndsnd(8));

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

  % CONVEYER BELT
  deg = pi/180;
  angle = [0:5:360]*deg;
  cx = cos(angle);
  cy = sin(angle);

  % ENTRANCE BOX
  x = 60;
  y = 20;
  fill([0 0 x+10 x+10],y+[70 50 50 70],nndkblue,...
    'edgecolor','none')
  fill(x+[10 10 50 50],y+[80 40 40 80],nndkblue,...
    'edgecolor','none')
  plot([0 x+[10 10 50 50 10 10] 0],...
    y+[50 50 40 40 80 80 70 70],...
    'color',nnred)
  left_arrow = fill(x+30+[-5 -5 -10 0 10 5 5],y+60+[15 5 5 -15 5 5 15],nndkblue,...
    'edgecolor',nnred,...
    'erasemode','none');
  fruit_ind = text(x-25,y+60,'Fruit',...
    'color',[0.8 0.8 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

  % LEFT CIRCLE
  line_angle = 45*deg;
  fill(x-10+cx*10,y+10+cy*10,nnred,...
    'edgecolor',nndkblue,...
    'linewidth',2)
  line_1 = plot(x-10+cos([0 pi]+line_angle)*8,y+10+sin([0 pi]+line_angle)*8,...
    'color',nndkblue,...
    'erasemode','none',...
    'linewidth',2);

  % RIGHT CIRCLE
  x = 320;
  fill(x+10+cx*10,y+10+cy*10,nnred,...
    'edgecolor',nndkblue,...
    'linewidth',2)
  line_2 = plot(x+10+cos([0 pi]+line_angle)*8,y+10+sin([0 pi]+line_angle)*8,...
    'color',nndkblue,...
    'erasemode','none',...
    'linewidth',2);

  % BELT
  plot([50 330],[y y]+20,...
    'color',nndkblue,...
    'linewidth',2)
  plot([50 330],[y y],...
    'color',nndkblue,...
    'linewidth',2)
  
  % SENSOR BOX #1
  x = 140;
  fill(x+[0 40 20],y+[40 40 80],nndkblue,...
    'edgecolor',nnred)
  fill(x+[0 40 40 0],y+[14 14 8 8],nndkblue,...
    'edgecolor',nnred)
  cross = plot(x+[15 25 20 25 15],y+[50 60 55 50 60],...
    'color',nndkblue,...
    'linewidth',3,...
    'erasemode','none');
  
  % SENSOR BOX #2
  x = 200;
  fill(x+[0 40 20],y+[40 40 80],nndkblue,...
    'edgecolor',nnred)
  fill(x+[0 40 40 0],y+[14 14 8 8],nndkblue,...
    'edgecolor',nnred)

  % EXIT BOX
  x = 320;
  fill([x-10 x-10 380 380],y+[80 62 62 80],nndkblue,...
    'edgecolor','none')
  fill([x-10 x-10 380 380],y+[40 58 58 40],nndkblue,...
    'edgecolor','none')
  fill(x-[10 10 50 50],y+[80 40 40 80],nndkblue,...
    'edgecolor','none')
  plot([378 x-[50 50] 378],y+[80 80 40 40],...
    'color',nnred)
  plot([378 x-[10 10] 378],y+[62 62 58 58],...
    'color',nnred)
  right_arrow = fill(x-30+[-5 -5 -10 0 10 5 5],y+60-[15 5 5 -15 5 5 15],nndkblue,...
    'edgecolor',nnred,...
    'erasemode','none');
  top_ind = text(x+25,y+71,'Banana',...
    'color',[0.8 0.8 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  bottom_ind = text(x+24,y+48,'Other',...
    'color',[0.8 0.8 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

  % BUTTONS
  go_button = uicontrol(...
    'units','points',...
    'position',[400 165 60 20],...
    'string','Fruit',...
    'callback',[me '(''go'')']);
  uicontrol(...
    'units','points',...
    'position',[400 130 60 20],...
    'string','Clear',...
    'callback',[me '(''clear'')'])
  uicontrol(...
    'units','points',...
    'position',[400 95 60 20],...
    'string','Contents',...
    'callback','nndtoc')
  uicontrol(...
    'units','points',...
    'position',[400 60 60 20],...
    'string','Close',...
    'callback',[me '(''close'')'])

  % LOWER SEPERATION BAR
  fill([0 0 380 380],130+[0 4 4 0],nndkblue,...
    'edgecolor','none')

  % UPPER SEPERATION BAR
  fill([0 0 380 380],160+[0 4 4 0],nndkblue,...
    'edgecolor','none')
 
  % RADIO BUTTONS
  set(nndtext(20,147,'First Scanner:','left'),...
    'fontsize',12)
  rb1 = uicontrol(...
    'units','points',...
    'position',[140 139 100 20],...
    'string','Working',...
    'style','radio',...
    'value',1,...
    'callback',[me '(''working'')']);
  rb2 = uicontrol(...
    'units','points',...
    'position',[250 139 100 20],...
    'string','Not Working',...
    'style','radio',...
    'callback',[me '(''notworking'')']);

  W1 = 1;
  W2 = 0;
  set(fig,'nextplot','add')
  
  % NETWORK INPUT #1
  x1 = 70;
  y1 = 310;
  dy1 = 55;
  nndtext(x1-10,y1+10,'Banana','right');
  nndtext(x1-10,y1-10,'Shape?','right');
  p1_box = fill(x1+[0 20 20 0 0],y1-10+[0 0 20 20 0],nnltgray,...
    'edgecolor',nnred,...
    'linewidth',2,...
    'erasemode','none');
  p1_text = nndtext(x1+10,y1,'?');
  set(p1_text,'erasemode','none');

  % NETWORK INPUT #2
  y3 = y1-2*dy1;
  dy3 = 20;
  nndtext(x1-10,y3+10,'Banana','right');
  nndtext(x1-10,y3-10,'Smell?','right');
  p2_box = fill(x1+[0 20 20 0 0],y3-10+[0 0 20 20 0],nnltgray,...
    'edgecolor',nnred,...
    'linewidth',2,...
    'erasemode','none');
  p2_text = nndtext(x1+10,y3,'?');
  set(p2_text,'erasemode','none');

  % NEURON
  x2 = x1+165;
  y2 = y1-dy1;
  sumdist = 50;
  sz = 15;
  plot(x2+[0 0 sumdist],y2+[-25 0 0],'linewidth',2,'color',nnred);
  plot(x2-20+[0 40 40 0 0],y2-45+[0 0 20 20 0],'color',nnred,'linewidth',2);
  plot(x2+[0 0],y2+[-45 -55],'linewidth',2,'color',nnred);
  plot(x2+sumdist+sz+[20 30 0 30 20],y2+[10 0 0 0 -10],'linewidth',2,'color',nnred);
  nndtext(x2+sumdist+sz+45,y2+30,'Banana?');
  nndsicon('sum',x2,y2,sz)
  nndsicon('hardlim',x2+sumdist,y2,sz)
  nndtext(x2,y2-36,'-0.5');
  nndtext(x2,y2-66,'1');
  a_box = fill(x2+sumdist+sz+35+[0 20 20 0 0],y2-10+[0 0 20 20 0],nnltgray,...
    'edgecolor',nnred,...
    'linewidth',2,...
    'erasemode','none');
  a_text = nndtext(x2+sumdist+sz+45,y2,'?');
  set(a_text,'erasemode','none');

  % NET INPUT
  n_box = fill(x2+5+[0 40 40 0 0],y2+30+[0 0 20 20 0],nnltgray,...
    'edgecolor',nnred,...
    'linewidth',2,...
    'erasemode','none');
  n_text = nndtext(x2+25,y2+40,'?');
  plot(x2+25+[0 0],y2+[30 0],':','linewidth',2,'color',nnred);
  
  % WEIGHTS #1
  straight = 95;
  plot([x1+20 x1+straight-50],[y1 y1],'linewidth',2,'color',nnred);
  plot([x1+straight-10 x1+straight x2-sz],[y1 y1 y2],'linewidth',2,'color',nnred);
  plot(x1+straight-50+[0 40 40 0 0],y1-10+[0 0 20 20 0],'color',nnred,'linewidth',2);
  nndtext(x1+straight-30,y1,'1');

  % WEIGHTS #2
  straight_dist = 100;
  plot([x1+20 x1+straight-50],[y3 y3],'linewidth',2,'color',nnred);
  plot([x1+straight-10 x1+straight x2-sz],[y3 y3 y2],'linewidth',2,'color',nnred);
  W2_box = fill(x1+straight-50+[0 40 40 0 0],y3-10+[0 0 20 20 0],nnltgray,...
    'edgecolor',nnred,...
    'linewidth',2,...
    'erasemode','none');
  W2_text = nndtext(x1+straight-30,y3,sprintf('%5.2f',W2));

  % INPUT HEADING
  temp = nndtext(x1+10,y1+30,'Inputs');

  % WEIGHT HEADING
  nndtext(x1+straight_dist-35,y1+30,'Weights');

  % SCANNER NAMES
  set(nndtext(160,120,'Banana'),...
    'fontsize',10)
  set(nndtext(160,110,'Shape?'),...
    'fontsize',10)
  set(nndtext(220,120,'Banana'),...
    'fontsize',10)
  set(nndtext(220,110,'Smell?'),...
    'fontsize',10)

  % SAVE WINDOW DATA AND LOCK
  angle_ptr = uicontrol('visible','off','userdata',line_angle);
  fruit_ptr = uicontrol('visible','off','userdata',[]);

  p1_ptr = uicontrol('visible','off','userdata',[]);
  p2_ptr = uicontrol('visible','off','userdata',[]);
  a_ptr = uicontrol('visible','off','userdata',[]);
  W2_ptr = uicontrol('visible','off','userdata',W2);
  W2_ptr = uicontrol('visible','off','userdata',W2);
  mode_ptr = uicontrol('visible','off','userdata',1);

  H = [fig_axis, ...
       desc_text, ...
       line_1 line_2, ...
       fruit_ind top_ind bottom_ind, ...
       wind knock scan classify blip bloop blp tribble, ...
       angle_ptr fruit_ptr 0 0 0, ...
       left_arrow right_arrow,rb1 rb2 cross, ...
       p1_ptr p2_ptr a_ptr W2_ptr,...
       p1_box p1_text p2_box p2_text a_box a_text,...
       go_button mode_ptr W2_box W2_text,...
       n_box, n_text];

  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,...
    'Click [Fruit] to send',...
    'a fruit down the belt',...
    'to be recognized.',...
    'Click [Update] to apply',...
    'the Hebb rule.',...
    '',...
    'When the lower weight',...
    'is > 0.5 the network',...
    'will recognize',...
    'bananas with the',...
    '1st scanner off.')
    
%==================================================================
% Respond to fruit.
%
% ME('fruit')
%==================================================================

elseif strcmp(cmd,'go') & (fig) & (nargin == 1) & (mode == 1);

  % GET DATA
  wind = get(sounds(1),'userdata');
  knock = get(sounds(2),'userdata');
  scan = get(sounds(3),'userdata');
  classify = get(sounds(4),'userdata');
  blip = get(sounds(5),'userdata');
  bloop = get(sounds(6),'userdata');
  blp = get(sounds(7),'userdata');
  tribble = get(sounds(8),'userdata');
  angle = get(angle_ptr,'userdata');
  fruit = get(fruit_ptr,'userdata');
  axes(fig_axis);

  % NEW FRUIT
  nnpause(pause1)
  x = 82;
  y = 42;

  % FRUIT ID, COLOR & SHAPE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精品aa午夜观看| 国产一区二区女| 国产剧情一区在线| 欧美午夜影院一区| 国产精品女同互慰在线看| 全国精品久久少妇| 欧美中文字幕一二三区视频| 国产日韩影视精品| 日本伊人色综合网| 欧美主播一区二区三区| 亚洲视频一区在线| 国产成人亚洲精品青草天美| 日韩欧美国产一二三区| 五月综合激情日本mⅴ| 91黄色免费观看| 亚洲伦在线观看| 成人av电影免费观看| 国产日本一区二区| 国产传媒一区在线| 久久久久久久综合色一本| 久草热8精品视频在线观看| 56国语精品自产拍在线观看| 香蕉乱码成人久久天堂爱免费| 色综合一区二区三区| 国产精品国产馆在线真实露脸| 国产精品18久久久久久久网站| 2024国产精品| 国产大陆精品国产| 日本一区二区三区高清不卡| 国产suv精品一区二区6| 中文字幕不卡在线观看| 粉嫩av一区二区三区在线播放| 国产偷国产偷精品高清尤物| 国产乱子伦一区二区三区国色天香 | 亚洲美女区一区| 91日韩精品一区| 亚洲激情五月婷婷| 欧美欧美欧美欧美| 蜜桃视频第一区免费观看| 精品国一区二区三区| 国产成人在线视频播放| 国产精品久久久久久久久免费樱桃 | 欧美一区三区二区| 麻豆成人免费电影| 国产亚洲精久久久久久| 99精品久久免费看蜜臀剧情介绍| 亚洲视频资源在线| 欧美丝袜丝交足nylons图片| 日韩国产欧美一区二区三区| 精品免费视频一区二区| 国产福利一区在线| 亚洲欧洲99久久| 欧美日韩精品高清| 国模大尺度一区二区三区| 国产精品乱码人人做人人爱| 欧美影视一区二区三区| 久久成人久久鬼色| 国产精品久久久久久福利一牛影视 | 国产三级欧美三级日产三级99| 91亚洲男人天堂| 日本欧美大码aⅴ在线播放| 日韩中文字幕麻豆| 日韩欧美一区电影| 99久久免费国产| 日本aⅴ精品一区二区三区 | 精品国产区一区| av一区二区三区| 日本欧美一区二区三区乱码| 国产亚洲精品7777| 欧美日韩一区二区欧美激情| 国产成人午夜精品5599| 亚洲午夜电影网| 国产香蕉久久精品综合网| 欧美日韩在线综合| 国产成人精品在线看| 五月天精品一区二区三区| 欧美国产日本视频| 日韩一区二区视频在线观看| 91在线观看地址| 国产在线精品视频| 视频一区中文字幕| 亚洲日穴在线视频| 国产偷国产偷亚洲高清人白洁| 欧美三级日韩三级国产三级| 国产精品中文字幕一区二区三区| 午夜欧美在线一二页| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 91精品婷婷国产综合久久| 91网站最新地址| 国产白丝网站精品污在线入口| 裸体健美xxxx欧美裸体表演| 午夜影院久久久| 亚洲人吸女人奶水| 国产精品网站在线观看| 久久综合九色综合欧美就去吻 | 国产精品电影一区二区三区| 日韩欧美一区二区久久婷婷| 欧美猛男gaygay网站| 色婷婷久久久久swag精品| 成人在线一区二区三区| 国产老肥熟一区二区三区| 精品在线免费视频| 麻豆一区二区99久久久久| 日韩成人精品在线| 午夜精品在线看| 亚洲第四色夜色| 亚洲成人动漫精品| 性做久久久久久久免费看| 午夜精品aaa| 视频在线观看91| 蜜桃精品视频在线| 久久99精品国产.久久久久久| 热久久国产精品| 久久66热偷产精品| 国产精品中文欧美| 成人综合日日夜夜| 91丝袜呻吟高潮美腿白嫩在线观看| 99在线精品观看| 欧洲av在线精品| 欧美日韩中文国产| 666欧美在线视频| 精品国产自在久精品国产| 精品久久国产字幕高潮| 久久久久久麻豆| 中文字幕一区二区三区不卡| 亚洲欧美日韩精品久久久久| 亚洲香蕉伊在人在线观| 日本欧美一区二区三区乱码 | 色av成人天堂桃色av| 欧美三级视频在线| 欧美一区二区三区人| 久久久精品一品道一区| 国产精品美女久久久久久久久 | 国产亚洲欧美一区在线观看| 中文字幕精品在线不卡| 日韩理论片在线| 亚洲.国产.中文慕字在线| 免费av成人在线| 国产a视频精品免费观看| 91国产免费观看| 26uuu成人网一区二区三区| 中文字幕第一区二区| 亚洲国产乱码最新视频| 狠狠色丁香婷婷综合| 91久久精品国产91性色tv| 91精品国产综合久久精品app| 久久久91精品国产一区二区精品 | 欧美亚洲综合在线| 精品少妇一区二区三区日产乱码| 日本一区二区成人在线| 亚洲成人1区2区| 成人精品视频一区| 91麻豆精品国产91久久久使用方法| 国产午夜精品久久久久久久| 性做久久久久久免费观看| 国产成人免费高清| 69堂成人精品免费视频| 中文一区在线播放| 日韩国产在线观看一区| av中文字幕一区| 精品成人在线观看| 亚洲成a人片在线不卡一二三区| 国产成人午夜高潮毛片| 欧美精品日韩一本| 亚洲欧美激情一区二区| 国产精品一区二区三区乱码| 欧美日韩国产另类一区| 日韩一区中文字幕| 国产一区二区三区日韩| 91精品国产高清一区二区三区| 亚洲欧洲精品天堂一级| 精品一区二区精品| 欧美丰满嫩嫩电影| 亚洲精品日韩一| 97se亚洲国产综合自在线不卡| 久久欧美中文字幕| 日本午夜一本久久久综合| 91久久香蕉国产日韩欧美9色| 国产精品麻豆欧美日韩ww| 国产一区二区三区免费在线观看| 欧美一区二区三区日韩| 亚洲成人自拍偷拍| 色激情天天射综合网| 亚洲欧美在线观看| hitomi一区二区三区精品| 国产性天天综合网| 国产精品一区二区在线播放| 精品国产亚洲在线| 精品一区二区三区免费| 欧美一区二区久久久| 日本视频一区二区| 91精品欧美久久久久久动漫| 亚洲成av人片一区二区三区 | 亚洲成av人影院在线观看网| 91浏览器入口在线观看| 亚洲欧美日韩在线| 色综合色综合色综合 | 欧美日韩成人综合| 日韩精品久久理论片| 91麻豆精品国产91久久久资源速度|