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

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

?? nnd14cc.m

?? 神經網絡設計書籍配套源碼(matlab平臺)
?? M
?? 第 1 頁 / 共 2 頁
字號:
function nnd14cc(cmd,arg1,arg2,arg3)
%NND14CC Competitive classification demonstration.
%
%	This demonstration requires either the MININNET functions
%	on the NND disk or the Neural Network Toolbox.

% First Version, 8-31-95.

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

% CONSTANTS
me = 'nnd14cc';
Fs = 8192;

% 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);          % handles to red lines in conveyor ends
  indicators = H(5:7);     % fruit, orange & apple indicators
  sounds = H(8:14);        % pointers to sounds
  nnet = H(15:17);         % handles to box & text of neural network
  p_text = H(18:20);       % handles to three input displays
  angle_ptr = H(21);       % angle (deg) of lines in conveyer ends
  fruit_ptr = H(22);       % pointer to fruit shape
  id_ptr = H(23);          % pointer to fruit type (1-orange 2-apple)
  net_ptr = H(24);         % pointer to network specific data
  p_ptr = H(25);           % pointer to input vector
  arrows = H(26:27);       % handles to arrows
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','Competitive Classification','','Chapter 14');

  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));

  % ICON
  nndicon(14,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
  x = 130;
  plot(x+[10 10 60 NaN 0 0 60 NaN -10 -10 60],...
    y+[90 70 70 NaN 90 60 60 NaN 90 50 50],...
    'color',nndkblue,...
    'linewidth',2)
  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)
  fill([0 0 380 380],y+[90 110 110 90],nndkblue,...
    'edgecolor','none')
  p1_text = text(20,y+100,'SHAPE: ?',...
    'color',nnltgray,...
    'fontweight','bold',...
    'horiz','left',...
    'erasemode','none');
  p2_text = text(190,y+100,'TEXTURE: ?',...
    'color',nnltgray,...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  p3_text = text(360,y+100,'WEIGHT: ?',...
    'color',nnltgray,...
    'fontweight','bold',...
    'horiz','right',...
    'erasemode','none');
  
  % NEURAL NETWORK
  x = 190;
  plot(x+[60 80],y+[60 60],...
    'color',nndkblue,...
    'linewidth',2)
  nn_box = fill(x+[5 0 0 5 55 60 60 55],y+[80 75 45 40 40 45 75 80],nndkblue,...
    'edgecolor',nnred,...
    'erasemode','none');
  nn_text1 = text(x+30,y+68,'Neural',...
    'color',[0 0.8 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  nn_text2 = text(x+30,y+52,'Network',...
    'color',[0 0.8 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

  % 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');
  orange_ind = text(x+25,y+72,'Oranges',...
    'color',[1 0.5 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');
  apple_ind = text(x+25,y+50,'Apples',...
    'color',[1 0 0],...
    'fontweight','bold',...
    'horiz','center',...
    'erasemode','none');

  % BUTTONS
  uicontrol(...
    'units','points',...
    'position',[400 180 60 20],...
    'string','Go',...
    'callback',[me '(''fruit'')'])
  uicontrol(...
    'units','points',...
    'position',[400 145 60 20],...
    'string','Clear',...
    'callback',[me '(''remove'')'])
  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'')'])

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

  H = [fig_axis, ...
       desc_text, ...
       line_1 line_2, ...
       fruit_ind orange_ind apple_ind, ...
       wind knock scan classify blip bloop blp, ...
       nn_box nn_text1 nn_text2, ...
       p1_text p2_text p3_text, ...
       angle_ptr fruit_ptr id_ptr net_ptr p_ptr, ...
       left_arrow right_arrow];

  set(fig,'userdata',H,'nextplot','new')

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

  % SETUP NETWORK SPECIFIC STUFF
  feval(me,'setup')

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

  nnchkfs;

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

elseif strcmp(cmd,'instr') & (fig)
  nnsettxt(desc_text,...
    'Click [Go] to send',...
    'a fruit down the',...
    'belt to be classified',...
    'by the competitive',...
    'layer.',...
    '',...
    'Calculations for the',...
    'the layer will appear',...
    'at left.')
    
%==================================================================
% Respond to fruit.
%
% ME('fruit')
%==================================================================

elseif strcmp(cmd,'fruit') & (fig) & (nargin == 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');
  angle = get(angle_ptr,'userdata');
  fruit = get(fruit_ptr,'userdata');
  fruit_id = get(id_ptr,'userdata');
  axes(fig_axis);

  % GET RID OF PREVIOUS FRUIT
  if length(fruit) > 0

    % CLEAR VALUES
    set(p_text,...
      'color',nndkblue)
    set(p_text(1),...
      'string','SHAPE: ?',...
      'color',nnltgray)
    set(p_text(2),...
      'string','TEXTURE: ?',...
      'color',nnltgray)
    set(p_text(3),...
      'string','WEIGHT: ?',...
      'color',nnltgray)

    % CLEAR NETWORK DEPENDENT STUFF
    feval(me,'clear')

    nnpause(0.5)
    end

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

  % FRUIT ID, COLOR & SHAPE
  if (rand > 0.5)
    % ORANGE
    fruit_id = 1;
    fruit_x = [5 0 0 5 10 15 15 10];
    fruit_y = [15 10 5 0 0 5 10 15];
    fruit_c = [1 0.5 0];
    p = [1; -1; -1];
  else
    % APPLE
    fruit_id = 2;
    fruit_x = [7.5 5 0 0 5 7.5 10 15 15 10];
    fruit_y = [13 15 10 5 0 2 0 5 10 15];
    fruit_c = [1 0 0];
    p = [1; 1; -1];
  end
  p = p*0.6 + (rands(3,1) .^ 2) * 0.4;
  p = round(p*100)/100;
  set(p_ptr,'userdata',p);

  % FLASH FRUIT INDICATOR TWICE
  set(fig,'nextplot','add')
  nnsound(blip,Fs);
  set(indicators(1),...
    'color',[1 1 1])
  box = plot([10 60 60 10 10],[72 72 88 88 72],...
    'color',[1 1 1],...
    'erasemode','none');

  nnpause(0.25)
  nnsound(bloop,Fs);
  set(indicators(1),...
    'color',[0.8 0.8 0])
  set(box,...
    'color',[0.8 0.8 0])

  nnpause(0.25)
  nnsound(blip,Fs);
  set(indicators(1),...
    'color',[1 1 1])
  set(box,...
    'color',[1 1 1])

  nnpause(0.25)
  nnsound(bloop,Fs);
  set(indicators(1),...
    'color',[0.8 0.8 0])
  set(box,...
    'color',nndkblue)
  delete(box)
  nnpause(0.25)

  set(arrows(1),...
    'facecolor',nnred)
  t1 = clock;
  nnsound(wind,Fs);
  while etime(clock,t1) < 0.5, end
  nnpause(0.25)
  set(arrows(1),...
    'facecolor',nndkblue)

  set(indicators(1),...
    'color',[0.8 0.8 0])

  % CREATE FRUIT
  fruit = fill(x+fruit_x,y+fruit_y,fruit_c,...
    'edgecolor',fruit_c*0.5,...
    'erasemode','none');
  set(fig,'nextplot','new')
  nnsound(knock,Fs);
  nnpause(0.25)

  % MOVE FRUIT TO SENSOR
  deg = pi/180;
  for dx=10:10:60
    t1 = clock;
    nnsound(blp,Fs);
    while etime(clock,t1) < 0.05, end
    set(fruit,...
      'facecolor',nnltgray,...
      'edgecolor',nnltgray);
    set(fruit,...
      'facecolor',fruit_c,...
      'edgecolor',fruit_c*0.5,...
      'xdata',fruit_x + x + dx)
    angle = angle + 20;
    adata = [0 pi]-angle*deg;
    xdata = cos(adata)*8;
    ydata = sin(adata)*8+30;
    set(lines,'color',nnred);
    set(lines(1),...
      'xdata',xdata+50,...
      'ydata',ydata,...
      'color',nndkblue)
    set(lines(2),...
      'xdata',xdata+330,...
      'ydata',ydata,...
      'color',nndkblue)
  end

  % SCAN FRUIT
  nnpause(0.25)
  set(fig,'nextplot','add')
  h1 = fill([170 130 130 170],[35 35 39 39],[1 1 1],...
    'edgecolor','none',...
    'erasemode','none');
  h2 = fill([170 130 130 170],[41 41 58 58],[1 1 1],...
    'edgecolor','none',...
    'erasemode','none');
  set(fruit,...
   'facecolor',[1 1 1])

  t1 = clock;
  nnsound(scan,Fs);
  while etime(clock,t1) < 0.5, end

  set(h1,'facecolor',nnltgray)
  set(h2,'facecolor',nnltgray)
  delete(h1)
  delete(h2)
  set(fruit,...
    'facecolor',fruit_c)
  set(fig,'nextplot','new')
  nnpause(0.25)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频免费观看高清在线视频| 免费欧美日韩国产三级电影| 国产成人精品午夜视频免费| 日韩三级视频在线看| 亚洲网友自拍偷拍| 欧美性大战xxxxx久久久| 日韩美女久久久| 九九**精品视频免费播放| 欧美视频一区二区三区在线观看| 亚洲国产经典视频| 日本成人在线看| 欧美xxx久久| 国产在线看一区| 国产欧美一区二区三区鸳鸯浴 | 日韩精品专区在线| 日韩二区三区在线观看| 宅男噜噜噜66一区二区66| 亚洲成人自拍网| 欧美一区二区三区视频在线观看 | 亚洲免费在线电影| 色偷偷成人一区二区三区91| 亚洲精品久久久蜜桃| 日本电影亚洲天堂一区| 亚洲婷婷综合久久一本伊一区 | 午夜久久久久久| 欧美一卡二卡在线观看| 精品在线亚洲视频| 久久精品人人做人人爽97| 成人性色生活片| 最新日韩av在线| 欧美专区在线观看一区| 天天综合色天天综合| 日韩三区在线观看| 国产福利视频一区二区三区| 中文字幕日韩精品一区| 色综合久久久久综合99| 亚洲福利视频一区| 日韩免费在线观看| 国产**成人网毛片九色| 樱桃国产成人精品视频| 777久久久精品| 粉嫩蜜臀av国产精品网站| 亚洲免费在线播放| 欧美一级高清大全免费观看| 国产91在线观看丝袜| 一区二区三区高清在线| 精品久久久久香蕉网| 91麻豆6部合集magnet| 日韩av在线发布| 国产三级欧美三级| 欧美日韩成人在线| 国产.欧美.日韩| 天堂av在线一区| 91麻豆精品国产无毒不卡在线观看 | 欧美韩国日本不卡| 欧美日韩国产另类一区| 国产精品一卡二卡| 亚洲一区二区三区爽爽爽爽爽| 精品国一区二区三区| 91丨porny丨在线| 国产在线视视频有精品| 一区二区三区在线免费视频| 久久久电影一区二区三区| 日本精品免费观看高清观看| 国产精品自产自拍| 亚洲成av人片一区二区三区| 国产精品看片你懂得| 欧美一级二级在线观看| 色天天综合色天天久久| 国产成人精品在线看| 蜜臀精品久久久久久蜜臀 | 久久久午夜精品理论片中文字幕| 色94色欧美sute亚洲线路一久| 亚洲午夜精品网| 日韩一区在线免费观看| 欧美va在线播放| 制服丝袜激情欧洲亚洲| 色综合久久久久综合体桃花网| 成人亚洲精品久久久久软件| 黄一区二区三区| 欧美96一区二区免费视频| 一区二区在线观看视频在线观看| 日本一区二区在线不卡| 精品国偷自产国产一区| 日韩一区二区不卡| 欧美揉bbbbb揉bbbbb| 99久久精品国产一区| 丁香啪啪综合成人亚洲小说 | 国产精品二三区| 亚洲国产高清aⅴ视频| 国产三级欧美三级日产三级99| 精品国产乱码久久久久久牛牛| 日韩你懂的在线播放| 欧美日韩高清一区二区| 欧美日韩一区精品| 在线精品视频免费播放| 91色九色蝌蚪| 91小视频在线免费看| 99久久国产综合精品女不卡| 94色蜜桃网一区二区三区| 成人av动漫网站| 成人免费毛片app| 不卡一区二区三区四区| 国产精品1区2区| 成人av在线电影| 91久久一区二区| 91久久一区二区| 欧美色图一区二区三区| 欧美日本一区二区三区| 91行情网站电视在线观看高清版| 欧美性极品少妇| 欧美亚洲国产一区二区三区va| 色一情一伦一子一伦一区| 成人精品免费网站| jizz一区二区| 色偷偷成人一区二区三区91| 欧美性色黄大片| 欧美日高清视频| 日韩精品一区二| 久久久精品国产免大香伊| 国产日韩欧美精品综合| 中文成人综合网| 一区二区在线观看视频在线观看| 亚洲婷婷综合久久一本伊一区| 亚洲一区中文日韩| 日韩av电影免费观看高清完整版| 国产一区二区在线电影| 成人涩涩免费视频| 欧美亚洲国产怡红院影院| 日韩视频免费直播| 国产精品视频观看| 亚洲综合视频在线观看| 久久国产剧场电影| av在线不卡电影| 欧美美女网站色| 日韩欧美亚洲一区二区| 国产精品乱子久久久久| 亚洲成人精品一区二区| 国产乱人伦偷精品视频不卡| 国产精品自拍av| 欧美日韩在线播放三区| 国产日韩欧美制服另类| 亚洲高清视频在线| 国产成人免费网站| 欧美日韩亚洲综合一区二区三区| 欧美精品tushy高清| 亚洲精品在线网站| 亚洲天堂av一区| 美女爽到高潮91| 色天使色偷偷av一区二区| 欧美日韩一本到| 中文字幕高清不卡| 免费日本视频一区| 高清不卡在线观看| 欧美性大战久久久久久久蜜臀| 久久久久久久久久久电影| 亚洲自拍另类综合| 丁香婷婷综合色啪| 日韩欧美电影一区| 亚洲国产一区二区a毛片| 国产不卡视频在线观看| 欧美二区三区91| 亚洲综合av网| 91免费看`日韩一区二区| 精品成人在线观看| 亚洲一卡二卡三卡四卡| 成人免费观看av| 久久久三级国产网站| 全国精品久久少妇| 欧美午夜精品久久久久久孕妇| 国产亚洲制服色| 美女视频免费一区| 5858s免费视频成人| 一区二区三区欧美| 国产suv精品一区二区6| 欧美另类久久久品| 国产精品福利一区二区三区| 日韩1区2区3区| 欧美日韩aaaaa| 三级久久三级久久| 一本大道久久a久久综合| 中文字幕精品在线不卡| 国产精品伊人色| 精品久久人人做人人爽| 午夜影院久久久| 欧美性猛交xxxx乱大交退制版| 亚洲一区二区三区爽爽爽爽爽| 色综合天天综合| 亚洲欧洲国产专区| 成人高清视频在线| 中文字幕欧美三区| 成人激情小说乱人伦| 欧美国产日韩a欧美在线观看 | 国产成人免费视频一区| 欧美精品一区男女天堂| 国内偷窥港台综合视频在线播放| 久久亚洲综合av| 国产精品77777竹菊影视小说| 欧美激情一区二区三区全黄| www.亚洲免费av|