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

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

?? creatset.m

?? 支持向量機工具箱
?? M
?? 第 1 頁 / 共 2 頁
字號:
function result = creatset(action,varargin)
% CREATSET interactive data sets generator.
%
% Generator is fully controled by mouse. The mouse buttons have
% the following functions:
% --------------------------------------------------------
% Left button  - creates a new point or distribution
% Right button - erases the point or distribution
%
% If normal distributed mixture is created then
% double-click on the left button gets info, moreover makes distribution
% selected - change of a covarianace matrix is then possible.
% --------------------------------------------------------------------
%
% Syntax
% creatset('finite')
% creatset('normal')
% creatset('...',K)
% creatset('...',K,'fce',arg1,arg2,..)
%
% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 04.11.1999
% Modifications
% 24. 6.00 V. Hlavac, comments polished.

XCOLORS=['b','r','g','y','m','k','c'];      % colors of the ellipses
MAXCOLOR=size(XCOLORS,2);
ID_NORMAL='Infinite sets, Normal distributions';
ID_FINITE='Finite sets, Enumeration';
DX_SPACE=0.5;   % space betwean the nearest point and the left and right border
DY_SPACE=0.5;   % --//--                                  top and bottom -//-

if nargin < 1,
   action = 'finite';
end

switch lower(action)
case 'finite'
   % == We will create finite data sets ===================================
   if nargin < 2,
      K=2;
   else
      K=varargin{1};
   end
   creatset('initialize',action,K,varargin{2:nargin-1});

case 'normal'
   % == We will create normal distributed sets  ===========================
   if nargin < 2,
      K=2;
   else
      K=varargin{1};
   end
   creatset('initialize',action,K,varargin{2:nargin-1});


case 'initialize'
   % == Initialize dialog window =========================================

   % get input arguments
   K=varargin{2};

   % == Figure ===========================================================
   hfigure = figure(...
      'Visible','off',...
    'NumberTitle','off', ...
       'Units','normalized', ...
      'RendererMode','manual');

   % == Axes =============================================================
   haxes1= axes(...
       'Units','normalized', ...
      'ButtonDownFcn','creatset(''click'',gcf)',...
      'Box','on', ...
      'XGrid','on', ...
      'YGrid','on', ...
      'NextPlot','add',...
      'Position',[0.1 0.1 0.65 0.85]);
   axis([-1 1 -1 1]);
   xlabel('X');
   ylabel('Y');


   % == Buttons ==========================================================
   left=0.8;
   bottom=0.05;
   height=0.05;
   width=0.15;

   % close button
   hbtclose = uicontrol( ...
      'Units','Normalized', ...
      'Callback','creatset(''close'',gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Close');

   % ok button
   bottom=bottom+1*height;
   hbtok = uicontrol( ...
      'Units','Normalized', ...
      'Callback','creatset(''ok'',gcf)',...
        'ListboxTop',0, ...
      'UserData',varargin,...
      'Position',[left bottom width height], ...
        'String','OK');

   % info button
   bottom=bottom+1.5*height;
   hbtinfo = uicontrol( ...
      'Units','Normalized', ...
      'Callback','creatset(''info'',gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Info');

   % load button
   bottom=bottom+1.5*height;
   hbtload = uicontrol( ...
      'Units','Normalized', ...
      'Callback','creatset(''load'',gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Load');

   % save button
   file=struct('name','noname.mat','path','','pathname','noname.mat');
   bottom=bottom+1*height;
   hbtsave = uicontrol( ...
      'Units','Normalized', ...
      'Callback','creatset(''save'',gcf)',...
        'ListboxTop',0, ...
      'Position',[left bottom width height], ...
      'UserData',file,...
        'String','Save');

   % == Popup menus ===================================================

   % popup menu - class
   % title
   bottom=0.91;
   htxclass =uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','Class');

   % popup menu
   for i=1:K,
      txnum=sprintf(' %d ',i);
      classes(i,1:size(txnum,2))=txnum;
   end

   bottom=bottom-height;
   hpuclass=uicontrol( ...
      'Style','popup', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String',classes);

   % == Edit lines =======================================================

   % x-axis
   bottom=bottom-1.2*height;
   htxxaxis=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','X-Axis');
   bottom=bottom-height;
   hedxaxis = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'CallBack','creatset(''setaxis'',gcf)',...
      'Style','edit',...
      'String','[-1 1]');

   % y-axis
   bottom=bottom-1.2*height;
   htxyaxis=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','Y-Axis');
   bottom=bottom-height;
   hedyaxis = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
      'Position',[left bottom width height], ...
      'CallBack','creatset(''setaxis'',gcf)',...
      'Style','edit',...
      'String','[-1 1]');

   % normal distributions are given by SIGMA in addition
   if strcmpi(varargin{1},'normal'),

      % label
      bottom=bottom-1.5*height;
      htxcov=uicontrol( ...
         'Style','text', ...
         'Units','normalized', ...
         'Position',[left bottom width 0.9*height], ...
         'String','Covariance');

      % cov(xy)
      bottom=bottom-height;
      hedxx = uicontrol(...
        'Units','normalized', ...
         'ListboxTop',0, ...
         'Position',[left bottom width*0.5 height], ...
         'CallBack','creatset(''setcov'',gcf,1)',...
         'Style','edit',...
         'String','1');
      % cov(xy)
      hedxy = uicontrol(...
        'Units','normalized', ...
         'ListboxTop',0, ...
         'Position',[left+width*0.5 bottom width*0.5 height], ...
         'CallBack','creatset(''setcov'',gcf,2)',...
         'Style','edit',...
         'String','0');
      % cov(yx)
      bottom=bottom-height;
      hedyx = uicontrol(...
        'Units','normalized', ...
         'ListboxTop',0, ...
         'Position',[left bottom width*0.5 height], ...
         'CallBack','creatset(''setcov'',gcf,3)',...
         'Style','edit',...
         'String','0');
      % cov(yy)
      hedyy = uicontrol(...
        'Units','normalized', ...
         'ListboxTop',0, ...
         'Position',[left+width*0.5 bottom width*0.5 height], ...
         'CallBack','creatset(''setcov'',gcf,4)',...
         'Style','edit',...
         'String','1');

      bottom=bottom-1.2*height;
      htxmi1=uicontrol( ...
         'Style','text', ...
         'Units','normalized', ...
         'Position',[left bottom width 0.9*height], ...
         'String','MI=[');
      bottom=bottom-0.9*height;
      htxmi2=uicontrol( ...
         'Style','text', ...
         'Units','normalized', ...
         'Position',[left bottom width 0.9*height], ...
         'String','    ]');
   end

   % == Axes title ========================================================
   pos=get(haxes1,'Position');
   titletext=sprintf('File: %s',file.name);
   fontsize=(1-pos(2)-pos(4))*0.8;
   htitle=title(titletext,...
      'VerticalAlignment','bottom',...
      'HorizontalAlignment','left',...
      'FontUnits','normalized',...
      'Units','normalized',...
      'Position',[0 1 0],...
      'FontSize',fontsize);


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

   % create the structures according to the current set type
   switch lower(varargin{1}),
   case 'finite'
      set(hfigure,'name','Finite data set generator');
      ident=ID_FINITE;
      % set handlers
      handlers=struct(...
         'settype',lower(varargin{1}),...
         'saved',1,...
         'btsave',hbtsave,...
         'edxaxis',hedxaxis,...
         'edyaxis',hedyaxis,...
         'title',htitle,...
         'btok',hbtok,...
         'axes1',haxes1,...
         'puclass',hpuclass );
   case 'normal'
      set(hfigure,'name','Normal distribution generator');
      ident=ID_NORMAL;
      % set handlers
      handlers=struct(...
         'settype',lower(varargin{1}),...
         'currpoint',0,...
         'currhandle',0,...
         'saved',1,...
         'title',htitle,...
         'btsave',hbtsave,...
         'edxaxis',hedxaxis,...
         'edyaxis',hedyaxis,...
         'txmi1',htxmi1,...
         'txmi2',htxmi2,...
         'edxx',hedxx,...
         'edxy',hedxy,...
         'edyx',hedyx,...
         'edyy',hedyy,...
         'btok',hbtok,...
         'axes1',haxes1,...
         'puclass',hpuclass );
   end

   sets=struct(...
      'K',zeros(1,K),...
      'X',[],...
      'I',[],...
      'MI',[],...
      'SIGMA',[],...
      'N',2,...
      'id',ident);

   % store handlers and data set structure
   set(hfigure,'UserData',handlers);
   set(haxes1,'UserData',sets);


   % set figure as visible
   set(hfigure,'Visible','on');


case 'setcov'
   % == Set covariance matrix of current selected point ===================

   % get handlers
   hfigure=varargin{1};
   h=get(hfigure,'UserData');

   %get data set
   sets=get(h.axes1,'UserData');

   % current point
   i=h.currpoint;

   if varargin{2}==2,
      set(h.edyx,'String',get(h.edxy,'String'));
   elseif varargin{2}==3,
      set(h.edxy,'String',get(h.edyx,'String'));
   end

   % if some point is selected
   if i ~= 0,
      % get cov. matrix from edit lines
      sigma(1,1)=str2num(get(h.edxx,'String'));
      sigma(1,2)=str2num(get(h.edxy,'String'));
      sigma(2,1)=str2num(get(h.edyx,'String'));
      sigma(2,2)=str2num(get(h.edyy,'String'));

      % is sigma positive definite ?
      [aa,p]=chol(sigma);
      if p ~= 0,
         set(h.edxx,'String','1');
         set(h.edxy,'String','0');
         set(h.edyx,'String','0');
         set(h.edyy,'String','1');
         sigma=eye(2,2);
      end

      sets.SIGMA(:,(i-1)*2+1:i*2)=sigma;
      set(h.axes1,'UserData',sets);

%%%      window=axis;
      window=getaxis(h.axes1);
      R=min([(window(2)-window(1)),(window(4)-window(3))])/20;
      i=h.currpoint;
      class=sets.I(i);
%%      isigma=inv(sigma);
      mi=sets.MI(:,i);
%%%      [x,y]=ellipse(isigma,20,R,mi);
      [x,y]=ellips(mi,sigma,R);

      if h.currhandle==0,
         % draw new ellipse
         h.currhandle =fill(x,y,XCOLORS(mod(class-1,MAXCOLOR)+1),...
            'EraseMode','none',...
            'ButtonDownFcn','creatset(''click'',gcf)',...
            'Tag','ellipse',...
            'UserData',mi);
         set(hfigure,'UserData',h);
      else
         set(h.currhandle,'XData',x,'YData',y,'EraseMode','normal');
      end
   end % if i ~= 0,

case 'redraw'
   % == Redraw axes ===========================================================
   hfigure=varargin{1};
   h = get(hfigure,'UserData');      % get handlers

   children=get(h.axes1,'Children' );
   set(children,'EraseMode','normal','Visible','off');

   % get sets
   sets=get(h.axes1,'UserData');

   % set axes
   if strcmpi(sets.id,ID_FINITE)==1,
      maxs=max(sets.X');
      mins=min(sets.X');
   elseif strcmpi(sets.id,ID_NORMAL )==1,
      % set axes
      maxs=max(sets.MI');
      mins=min(sets.MI');
   end
   dx=min( (maxs(1)-mins(1)), 1 )*DX_SPACE;
   dy=min( (maxs(2)-mins(2)), 1 )*DY_SPACE;
   x1=round(mins(1)-dx);
   x2=round(maxs(1)+dx);
   y1=round(mins(2)-dy);
   y2=round(maxs(2)+dx);
   win=[x1 x2 y1 y2];
   axes(h.axes1);
   %%%   axis(win);
   setaxis(h.axes1,win);

   % redraw points or ellipses
   if strcmpi(sets.id,ID_FINITE)==1,
      % points
      for i=1:sum(sets.K),
         line(sets.X(1,i),sets.X(2,i), ...
            'LineStyle','none', ...
            'Marker','.', ...
            'Color',XCOLORS(mod(sets.I(i)-1,MAXCOLOR)+1), ...
            'MarkerSize',25, ...
            'ButtonDownFcn','creatset(''click'',gcf)',...
            'EraseMode','none',...
            'Tag','point');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九色|91porny| 在线视频一区二区三| 99久久99久久精品免费观看| 色老头久久综合| 2023国产一二三区日本精品2022| 日韩一区欧美一区| 激情都市一区二区| 欧美美女bb生活片| 一区二区三区久久久| 成人在线综合网站| www国产成人| 久久99国产精品尤物| 欧美日韩一级黄| 一区二区成人在线观看| 成人免费毛片片v| 国产网站一区二区三区| 麻豆精品蜜桃视频网站| 欧美精品电影在线播放| 亚洲五月六月丁香激情| 色狠狠色噜噜噜综合网| 亚洲视频综合在线| 9色porny自拍视频一区二区| 国产女人18水真多18精品一级做| 免费成人在线网站| 欧美一级二级三级蜜桃| 首页国产欧美久久| 欧美理论电影在线| 日韩电影在线免费看| 欧美日韩成人一区二区| 婷婷六月综合亚洲| 56国语精品自产拍在线观看| 亚洲va欧美va人人爽| 欧美日韩电影在线| 美女一区二区三区在线观看| 日韩亚洲欧美一区| 国产在线精品不卡| 国产免费久久精品| 91同城在线观看| 国产综合色产在线精品| 久久久美女毛片| 国产成人午夜电影网| 国产视频一区在线播放| 丁香啪啪综合成人亚洲小说| 日本一区二区电影| 91香蕉视频mp4| 性做久久久久久免费观看欧美| 在线播放91灌醉迷j高跟美女 | 免费日本视频一区| 日韩精品在线看片z| 国产精品一区二区男女羞羞无遮挡| 久久人人97超碰com| 国产成人精品免费视频网站| 国产精品丝袜一区| 91久久奴性调教| 天天色 色综合| 欧美精品一区男女天堂| 国产精品1区二区.| 亚洲精品中文在线观看| 91精品国产91综合久久蜜臀| 激情综合色播五月| 综合av第一页| 91精品国产91久久综合桃花 | 国产目拍亚洲精品99久久精品| 成人av在线观| 日日夜夜精品视频免费| 久久精品在线免费观看| 一本到不卡精品视频在线观看| 首页国产欧美日韩丝袜| 日本一区二区三区四区在线视频| 色成年激情久久综合| 精品一区二区三区免费毛片爱| 国产精品另类一区| 在线播放欧美女士性生活| 国产成人精品免费一区二区| 亚洲国产综合91精品麻豆| 337p粉嫩大胆色噜噜噜噜亚洲| 日本精品一区二区三区高清| 精品一区二区三区av| 亚洲精品视频一区二区| 久久久久久久久久久黄色| 在线看国产一区| 国产suv一区二区三区88区| 五月天激情综合| 国产精品日日摸夜夜摸av| 欧美一二区视频| 欧美亚洲综合网| www.欧美日韩| 国产福利一区在线| 免费精品99久久国产综合精品| 中文字幕日韩av资源站| 久久久三级国产网站| 欧美一区二区三区喷汁尤物| 91久久线看在观草草青青| 欧美性生活久久| 99riav一区二区三区| 国产电影一区二区三区| 免费成人在线播放| 天天av天天翘天天综合网 | 日韩一区二区不卡| 欧美亚洲愉拍一区二区| 97se亚洲国产综合自在线不卡| 国产一区二区精品久久99| 免费在线欧美视频| 日韩成人一级片| 日韩高清一区在线| 亚洲aaa精品| 一区二区三区.www| 亚洲人成小说网站色在线| 国产精品污网站| 中文字幕欧美国产| 国产精品入口麻豆原神| 中文字幕+乱码+中文字幕一区| 欧美国产综合一区二区| 国产精品美女久久久久久久久| 国产亚洲午夜高清国产拍精品| 久久久久久久久一| 国产欧美一区二区精品性色超碰| 久久久精品一品道一区| 国产三级一区二区| 国产精品久久三区| 亚洲色图丝袜美腿| 亚洲一级电影视频| 三级不卡在线观看| 奇米亚洲午夜久久精品| 精品在线免费视频| 国产成人亚洲综合a∨猫咪| 丁香天五香天堂综合| 91在线视频在线| 欧美日韩高清在线播放| 欧美成人国产一区二区| 久久久国产综合精品女国产盗摄| 国产女主播视频一区二区| 亚洲日本免费电影| 天天射综合影视| 国产一区二区三区日韩| 91视频免费观看| 欧美日本不卡视频| 久久老女人爱爱| 亚洲伦理在线免费看| 午夜激情综合网| 国产精品自产自拍| 色8久久精品久久久久久蜜| 欧美一区二区精美| 国产精品三级av在线播放| 亚洲福利视频导航| 国产制服丝袜一区| 91欧美一区二区| 日韩一区二区三区电影 | 亚洲国产日韩一区二区| 免费成人在线观看视频| 99综合电影在线视频| 欧美日韩高清影院| 中文字幕一区av| 免费久久精品视频| 色偷偷一区二区三区| 欧美va亚洲va香蕉在线| 亚洲男同性恋视频| 韩国欧美国产1区| 精品视频一区三区九区| 国产喷白浆一区二区三区| 爽好久久久欧美精品| av不卡一区二区三区| 亚洲一区二区三区四区在线观看| 麻豆精品一区二区三区| 91精品1区2区| 国产欧美日韩精品在线| 美女在线视频一区| 欧美日本一区二区在线观看| 中文字幕一区二区三区不卡| 国产在线国偷精品产拍免费yy| 欧美日韩你懂的| 亚洲欧美国产高清| 成人丝袜高跟foot| 久久综合九色综合久久久精品综合 | 自拍av一区二区三区| 精品一区二区三区日韩| 777午夜精品视频在线播放| 亚洲免费在线电影| 国产ts人妖一区二区| www国产成人| 久久国产人妖系列| 91精品国产福利在线观看| 亚洲成a人v欧美综合天堂| 91视频在线观看| 亚洲欧美自拍偷拍| va亚洲va日韩不卡在线观看| 国产欧美一区二区精品性色 | 日韩欧美一二区| 亚洲国产精品一区二区久久| 99久久免费视频.com| 国产精品视频免费看| 成人综合婷婷国产精品久久免费| 久久久久久毛片| 国产精品一区久久久久| 国产亚洲美州欧州综合国| 国产成人午夜99999| 国产精品天天看| 成人sese在线| 亚洲免费视频成人| 欧美在线制服丝袜|