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

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

?? sp_kmeans.m

?? 論文Beyond Bags of Features源代碼
?? M
字號:
function [centres, options, post, errlog] = sp_kmeans(centres, data, options)
% KMEANS	Trains a k means cluster model.
% Adapted from Netlab neural network software:
% http://www.ncrg.aston.ac.uk/netlab/index.php
%
%	Description
%	 CENTRES = KMEANS(CENTRES, DATA, OPTIONS) uses the batch K-means
%	algorithm to set the centres of a cluster model. The matrix DATA
%	represents the data which is being clustered, with each row
%	corresponding to a vector. The sum of squares error function is used.
%	The point at which a local minimum is achieved is returned as
%	CENTRES.  The error value at that point is returned in OPTIONS(8).
%
%	[CENTRES, OPTIONS, POST, ERRLOG] = KMEANS(CENTRES, DATA, OPTIONS)
%	also returns the cluster number (in a one-of-N encoding) for each
%	data point in POST and a log of the error values after each cycle in
%	ERRLOG.    The optional parameters have the following
%	interpretations.
%
%	OPTIONS(1) is set to 1 to display error values; also logs error
%	values in the return argument ERRLOG. If OPTIONS(1) is set to 0, then
%	only warning messages are displayed.  If OPTIONS(1) is -1, then
%	nothing is displayed.
%
%	OPTIONS(2) is a measure of the absolute precision required for the
%	value of CENTRES at the solution.  If the absolute difference between
%	the values of CENTRES between two successive steps is less than
%	OPTIONS(2), then this condition is satisfied.
%
%	OPTIONS(3) is a measure of the precision required of the error
%	function at the solution.  If the absolute difference between the
%	error functions between two successive steps is less than OPTIONS(3),
%	then this condition is satisfied. Both this and the previous
%	condition must be satisfied for termination.
%
%	OPTIONS(14) is the maximum number of iterations; default 100.
%
%	Copyright (c) Ian T Nabney (1996-2001)

[ndata, data_dim] = size(data);
[ncentres, dim] = size(centres);

if dim ~= data_dim
  error('Data dimension does not match dimension of centres')
end

if (ncentres > ndata)
  error('More centres than data')
end

% Sort out the options
if (options(14))
  niters = options(14);
else
  niters = 100;
end

store = 0;
if (nargout > 3)
  store = 1;
  errlog = zeros(1, niters);
end

% Check if centres and posteriors need to be initialised from data
if (options(5) == 1)
  % Do the initialisation
  perm = randperm(ndata);
  perm = perm(1:ncentres);

  % Assign first ncentres (permuted) data points as centres
  centres = data(perm, :);
end
% Matrix to make unit vectors easy to construct
id = eye(ncentres);

% Main loop of algorithm
for n = 1:niters

  % Save old centres to check for termination
  old_centres = centres;
  
  % Calculate posteriors based on existing centres
  d2 = sp_dist2(data, centres);
  % Assign each point to nearest centre
  [minvals, index] = min(d2', [], 1);
  post = id(index,:);

  num_points = sum(post, 1);
  % Adjust the centres based on new posteriors
  for j = 1:ncentres
    if (num_points(j) > 0)
      centres(j,:) = sum(data(find(post(:,j)),:), 1)/num_points(j);
    end
  end

  % Error value is total squared distance from cluster centres
  e = sum(minvals);
  if store
    errlog(n) = e;
  end
  if options(1) > 0
    fprintf(1, 'Cycle %4d  Error %11.6f\n', n, e);
  end

  if n > 1
    % Test for termination
    if max(max(abs(centres - old_centres))) < options(2) & ...
        abs(old_e - e) < options(3)
      options(8) = e;
      return;
    end
  end
  old_e = e;
end

% If we get here, then we haven't terminated in the given number of 
% iterations.
options(8) = e;
if (options(1) >= 0)
  disp('Warning: Maximum number of iterations has been exceeded');
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
7777精品伊人久久久大香线蕉完整版 | 26uuu国产日韩综合| 男女男精品视频网| 日韩一区二区在线观看视频| 奇米精品一区二区三区四区| 日韩欧美第一区| 国产精品影视网| 国产精品毛片无遮挡高清| 97精品国产露脸对白| 玉足女爽爽91| 337p亚洲精品色噜噜狠狠| 美女尤物国产一区| 久久精品亚洲麻豆av一区二区| 粉嫩久久99精品久久久久久夜| 国产精品麻豆一区二区 | jizz一区二区| 亚洲一区二区三区免费视频| 欧美一区二区三区在线观看| 国产永久精品大片wwwapp| 国产精品萝li| 欧美日韩另类一区| 精品一区二区在线看| 国产三级一区二区| 欧美日韩中文字幕一区二区| 狠狠狠色丁香婷婷综合激情 | 欧美一级欧美三级| 极品少妇xxxx精品少妇偷拍| 国产欧美精品一区二区色综合| 色噜噜夜夜夜综合网| 美国欧美日韩国产在线播放| 国产精品第五页| 日韩一级欧美一级| 99久久精品免费看| 蜜桃av一区二区三区电影| 国产精品人妖ts系列视频| 欧美日韩免费观看一区三区| 国产激情视频一区二区三区欧美| 一区二区三区中文在线| 欧美精品一区二区在线播放| 日本韩国欧美在线| 国产成人精品免费一区二区| 三级久久三级久久久| 中文字幕视频一区| 精品剧情v国产在线观看在线| 一本大道av伊人久久综合| 韩国女主播一区| 三级精品在线观看| 最新成人av在线| 久久久777精品电影网影网| 欧美精品乱人伦久久久久久| 91网址在线看| 国产黄人亚洲片| 精品一区二区三区在线视频| 亚洲亚洲人成综合网络| 成人欧美一区二区三区小说| 久久影院午夜片一区| 91精品国产综合久久久蜜臀粉嫩 | 国产精品自拍av| 日韩不卡一区二区三区| 亚洲综合精品自拍| 专区另类欧美日韩| 中文字幕第一区第二区| 精品福利一二区| 日韩丝袜美女视频| 在线成人av网站| 欧美日韩一级黄| 欧美性受xxxx黑人xyx| 99re在线精品| 91小视频在线观看| 95精品视频在线| 色综合久久综合| 99久久精品99国产精品| thepron国产精品| 成人av免费网站| 成人免费毛片片v| 成人免费毛片片v| 成人ar影院免费观看视频| 国产91精品露脸国语对白| 国产成人综合视频| 国产经典欧美精品| 国产白丝精品91爽爽久久| 国产成人一区二区精品非洲| 国产乱国产乱300精品| 国产一区二区三区视频在线播放| 激情图片小说一区| 国产在线国偷精品免费看| 紧缚奴在线一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 久久久91精品国产一区二区三区| 久久蜜臀精品av| 欧美国产禁国产网站cc| 中文字幕制服丝袜成人av| 亚洲品质自拍视频网站| 亚洲综合小说图片| 日韩精彩视频在线观看| 久久av中文字幕片| 国产成人av一区二区三区在线| 国产成人午夜视频| 91视频你懂的| 欧美精品久久天天躁| 欧美电影免费观看完整版| 久久精品日产第一区二区三区高清版 | 欧美男男青年gay1069videost | 国产精品国产三级国产aⅴ原创| 最新国产精品久久精品| 亚洲欧美国产高清| 亚洲成人高清在线| 久久99国内精品| 波多野洁衣一区| 欧美日韩三级在线| 欧美精品一区二区三区视频| 中国色在线观看另类| 亚洲国产视频一区| 激情欧美一区二区三区在线观看| www.激情成人| 欧美一级久久久久久久大片| 国产日韩欧美精品在线| 亚洲精品国产一区二区精华液 | 国产91富婆露脸刺激对白| 一本大道久久精品懂色aⅴ| 欧美一级电影网站| 国产精品成人一区二区艾草| 偷窥少妇高潮呻吟av久久免费| 国产电影精品久久禁18| 欧美日韩一区二区三区四区五区| 久久久久久久av麻豆果冻| 亚洲一二三区不卡| 成人av在线影院| 日韩午夜电影av| 一区二区三区日本| 国产精品996| 7777精品伊人久久久大香线蕉 | 久久国产剧场电影| 91香蕉视频mp4| 久久精品视频一区| 日本欧美在线看| 91福利小视频| 中文字幕av资源一区| 日本欧美一区二区三区乱码| 99精品1区2区| 久久久久高清精品| 日本女人一区二区三区| 97精品久久久午夜一区二区三区 | 国产剧情一区二区| 欧美疯狂做受xxxx富婆| 亚洲精选视频免费看| 国产精品影视网| 精品久久五月天| 青青青伊人色综合久久| 欧美亚洲高清一区二区三区不卡| 国产精品传媒入口麻豆| 国产风韵犹存在线视精品| 精品人伦一区二区色婷婷| 日韩电影免费在线| 欧美亚一区二区| 一区二区三区精品视频| 成人在线一区二区三区| wwwwxxxxx欧美| 精品一二线国产| 精品剧情在线观看| 久久66热偷产精品| 精品免费一区二区三区| 日韩av一级片| 日韩欧美一区电影| 久久精品国产久精国产| 日韩三级在线观看| 久久99久久久久| 日韩精品专区在线| 久久99国内精品| 久久久久久久久蜜桃| 国产成人午夜精品影院观看视频| 精品福利av导航| 激情文学综合插| 国产亚洲自拍一区| 丁香婷婷深情五月亚洲| 国产精品入口麻豆九色| 99国产精品视频免费观看| 亚洲欧美日韩在线| 欧美性猛交一区二区三区精品| 亚洲自拍欧美精品| 欧美肥妇free| 黄页视频在线91| 国产亚洲一区二区三区在线观看 | www.在线欧美| 亚洲影院免费观看| 欧美久久久久中文字幕| 久久激五月天综合精品| 久久精品视频一区| 色综合天天做天天爱| 亚洲一区成人在线| 欧美一区二区三区免费观看视频| 韩国女主播成人在线观看| 国产精品久久久久久久久快鸭 | 亚洲电影第三页| 精品三级在线看| av亚洲精华国产精华精华| 亚洲欧美偷拍卡通变态| 欧美卡1卡2卡| 国产成人免费在线视频| 亚洲乱码国产乱码精品精小说 |