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

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

?? mst.m

?? support vector clustering for Matlab tool box
?? M
字號:
function theResult = mst(edges, costs)

% mst -- Minimum spanning tree.
%  mst('demo') calls "mst(10)".
%  mst(nPoints) draws the minimum spanning tree for
%   nPoints (random x-y pairs).  Default = 10.  The
%   tree has the attractive property that it does
%   not intersect itself.
%  mst(edges, costs) returns indices of the minimum
%   spanning tree for the edges [from to] of a
%   connected graph, according to their corresponding
%   costs.  The edges connect vertices that are
%   labeled [1:number-of-vertices].  The "minimum
%   spanning tree" is the least costly graph that
%   connects all the points.  To obtain the
%   maximum spanning tree, negate the costs.
%   (Note: if the graph is not connected, the
%   result will contain a minimal spanning
%   tree for each piece.)
%  mst(x, y) returns the minimum spanning tree
%   for the (x, y) points, given as columns.
%  mst(z) returns the minimum spanning tree
%   for complex points z, given as a column.
%
% Reference: Isabel Beichl and Francis Sullivan,
%  "In order to form a more perfect UNION,"
%  Computing in Science and Engineering, v. 3,
%  n. 2, p. 60-64, March/April, 2001.  The
%  two local functions, "sfind" and "slink",
%  are copied from that paper.  The "sfind"
%  strategy is due to Robert E. Tarjan.
 
% Copyright (C) 2001 Dr. Charles R. Denham, ZYDECO.
%  All Rights Reserved.
%   Disclosure without explicit written consent from the
%    copyright owner does not constitute publication.
 
% Version of 02-Jul-2001 15:56:34.
% Updated    06-Jul-2001 09:37:14.

if nargin < 1, help(mfilename), edges = 'demo'; end

if isequal(edges, 'demo'), edges = 10; end

if ischar(edges), edges = eval(edges); end

% Demonstration.

if nargin < 2 & length(edges) == 1
	npts = edges;
	z = rand(npts, 1) + sqrt(-1)*rand(npts, 1);
	tic
	result = feval(mfilename, z);
	elapsed
	from = result(:, 1);
	to = result(:, 2);
	x = real(z);
	y = imag(z);
	f = findobj(gcf, 'Type', 'axes');
	if any(f), delete(f), end
	plot([x(from) x(to)].', [y(from) y(to)].', '-og')
	title([mfilename ' ' int2str(npts)])
	xlabel x
	ylabel y
	set(gcf, 'Name', 'Minimum Spanning Tree', 'NumberTitle', 'off')
	axis equal
	try, zoomsafe, catch, end
	figure(gcf)
	if nargout > 0, theResult = result; end
	return
end

% Process (x, y) points, or z points (complex).

if size(edges, 2) == 1
	if nargin == 1
		z = edges;
	elseif nargin == 2
		x = edges;
		y = costs;
		%z = x + sart(-1)*y;
        z = x + sort(-1)*y;
	end
	npts = length(z);
	[from, to] = meshgrid(1:npts, 1:npts);
	from = from(:);
	to = to(:);
	f = find(from < to);   % Unique edges only.
	from = from(f);
	to = to(f);
	edges = [from to];
	costs = abs(z(to) - z(from));
end

% Sort the edges by their cost.

[costs, indices] = sort(costs);
edges = edges(indices, :);

from = edges(:, 1);
to = edges(:, 2);

parent = 1:max(max(edges));
rank = zeros(size(parent));
keep = logical(zeros(size(parent)));

% Join sub-trees until no more links to process.

for i = 1:length(from)
	x = sfind(parent, from(i));
	parent(from(i)) = x;   % Acceleration strategy.
	y = sfind(parent, to(i));
	parent(to(i)) = y;   % Acceleration strategy.
	if x ~= y
		[parent, rank] = slink(x, y, parent, rank);
		keep(i) = ~~1;
	end
end

result = edges(keep, :);

% Check for disconnected graph, if desired.
%  For a single connected graph, everyone
%  will have the same root-parent.  Isolated
%  points are not considered part of the
%  graph system.

if (1)
	p = zeros(size(parent));
	for i = 1:length(parent)
		p(i) = sfind(parent, i);
	end
	if ~all(p == p(1))
		count = sum(diff(sort(p)) ~= 0) + 1;
		disp([' ## Not a connected graph.'])
		disp([' ## Contains ' int2str(count) ' independent graphs.'])
	end
end

% Sort indices for ease of reading.

for i = 2:-1:1
	[ignore, indices] = sort(result(:, i));
	result = result(indices, :);
end

if nargout > 0, theResult = result; end


% ---------- sfind ---------- %


function z = sfind(p, x)

% sfind -- Root of a set.
%  sfind(p, x) returns the root parent of the set
%   containing index x, given parent-list p.  The
%   speed is O(lon(n)).

y = x;

while y ~= p(y)
	y = p(y);
end

z = p(y);


% ---------- slink ---------- %


function [p, rank] = slink(x, y, p, rank)

% slink -- Link two sets.
%  [p, rank] = slink(x, y, p, rank) links two sets,
%   whose roots are x and y, using parent array p,
%   and rank(x),  a measure of the depths of the
%   tree from root x.  The speed is O(n).

if rank(x) < rank(y)
	p(x) = y;
else
	if rank(y) < rank(x)
		p(y) = x;
	else
		p(x) = y;
		rank(y) = rank(y) + 1;
	end
end


% ---------- elapsed ---------- %


function elapsed(thePrecision)

% elapsed -- Print elapsed time.
%  elapsed(thePrecision) displays the "toc" elapsed
%   time, with the given precision, in decimal seconds
%   (default = 1).  Use "tic" to initiate the timer.
 
% Copyright (C) 2001 Dr. Charles R. Denham, ZYDECO.
%  All Rights Reserved.
%   Disclosure without explicit written consent from the
%    copyright owner does not constitute publication.
 
% Version of 18-Jun-2001 06:41:43.
% Updated    18-Jun-2001 07:39:59.

if nargin < 1, thePrecision = 1; end

if ischar(thePrecision), thePrecision = eval(thePrecision); end

try
	t = fix(toc / thePrecision) * thePrecision;
	disp([' ## Elapsed time: ' num2str(t) ' s.'])
catch
	disp(' ## Please call "tic" first.')
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩高清在线| 精品国产乱码久久久久久老虎| 综合久久久久综合| 99久久精品国产观看| 亚洲综合免费观看高清完整版在线 | 欧美一二三区在线观看| 久久国产成人午夜av影院| 国产性做久久久久久| 成人一区在线看| 亚洲精品免费视频| 91精品黄色片免费大全| 国产精品 欧美精品| 亚洲日本乱码在线观看| 欧美午夜视频网站| 理论片日本一区| 日本一区二区不卡视频| 在线观看一区不卡| 看电影不卡的网站| 亚洲视频每日更新| 欧美一区二区三区公司| 国产成人精品网址| 婷婷成人激情在线网| 欧美大片一区二区三区| 成人动漫av在线| 视频在线观看一区| 中文欧美字幕免费| 91精品国产综合久久香蕉的特点 | 不卡电影一区二区三区| 亚洲国产精品久久人人爱蜜臀| 51久久夜色精品国产麻豆| 国产精品综合网| 亚洲国产成人av| 欧美国产禁国产网站cc| 欧美偷拍一区二区| 国产成人综合亚洲91猫咪| 亚洲综合成人在线视频| 国产亚洲午夜高清国产拍精品| 欧美在线播放高清精品| 国产91精品露脸国语对白| 日韩av电影一区| 亚洲乱码一区二区三区在线观看| ww久久中文字幕| 欧美视频一区在线| av一区二区三区黑人| 看片网站欧美日韩| 五月婷婷欧美视频| 亚洲色图在线看| 国产亚洲成av人在线观看导航 | 激情六月婷婷久久| 亚洲国产精品久久人人爱蜜臀| 国产嫩草影院久久久久| 精品捆绑美女sm三区| 欧美精三区欧美精三区| 91激情在线视频| 99久久婷婷国产精品综合| 国产精品99久久久久久似苏梦涵| 日韩av不卡在线观看| 亚洲国产成人精品视频| 亚洲精品成a人| 国产精品国产自产拍高清av王其 | 制服丝袜亚洲播放| 在线观看免费一区| 色综合一区二区| 色综合久久中文字幕综合网| 粉嫩av一区二区三区| 国产成人免费视频精品含羞草妖精 | 欧美一卡二卡在线| 欧美疯狂性受xxxxx喷水图片| 欧美四级电影网| 欧美视频中文字幕| 欧美日韩不卡在线| 欧美日韩电影在线播放| 精品视频一区二区三区免费| 色婷婷国产精品久久包臀| 色婷婷精品久久二区二区蜜臀av| 91在线视频官网| 色婷婷亚洲精品| 欧美影视一区二区三区| 欧美性感一区二区三区| 欧美美女bb生活片| 日韩欧美在线影院| 欧美xxxxx裸体时装秀| 久久久久久亚洲综合影院红桃| 久久久亚洲精华液精华液精华液| 久久久国产精品麻豆| 久久网站最新地址| 国产精品免费视频网站| 一区二区三区四区在线| 亚洲va韩国va欧美va| 日韩av一区二| 国产老妇另类xxxxx| www.日韩在线| 在线观看日韩电影| 日韩视频中午一区| 国产欧美精品在线观看| 亚洲美女在线一区| 午夜精品久久久久久久久| 紧缚奴在线一区二区三区| 国产69精品久久777的优势| 色综合天天综合网天天狠天天| 欧美中文字幕一区| 精品久久久久久最新网址| 国产精品国产三级国产专播品爱网| 一区二区三区欧美日| 美女网站视频久久| 99久久国产综合色|国产精品| 欧美日韩成人高清| 国产人成一区二区三区影院| 亚洲精品国久久99热| 久久疯狂做爰流白浆xx| 99久久综合色| 欧美一区二区三级| √…a在线天堂一区| 亚洲高清视频在线| 国产福利91精品一区| 欧美三级电影在线观看| 精品国产3级a| 午夜精品爽啪视频| 波多野结衣精品在线| 91精品国产色综合久久久蜜香臀| 中文字幕乱码亚洲精品一区| 日韩影视精彩在线| www.欧美日韩| 欧美电影免费观看完整版| 一区二区三区中文在线观看| 国产在线精品不卡| 欧美日韩激情一区二区| 国产精品情趣视频| 精品一区二区三区在线观看| 色噜噜狠狠成人网p站| 日本一区二区久久| 久久精品国产99久久6| 欧美天堂一区二区三区| 国产精品福利一区二区三区| 老司机免费视频一区二区| 欧美主播一区二区三区| 亚洲视频在线一区观看| 国产美女精品人人做人人爽| 欧美精品乱人伦久久久久久| 亚洲天天做日日做天天谢日日欢| 国产一区二区看久久| 日韩欧美一级在线播放| 亚洲h在线观看| 色诱亚洲精品久久久久久| 国产欧美日本一区二区三区| 久久精品久久久精品美女| 欧美肥胖老妇做爰| 亚洲电影中文字幕在线观看| 91啪在线观看| 中文字幕一区av| 国产一区二区在线观看免费| 精品少妇一区二区三区视频免付费 | 91尤物视频在线观看| 国产午夜精品一区二区三区视频| 久久成人免费网| 日韩欧美激情一区| 久久66热偷产精品| 欧美va在线播放| 久久精品99久久久| 欧美精品一区在线观看| 精品一区二区三区在线观看| 日韩精品一区国产麻豆| 美美哒免费高清在线观看视频一区二区| 欧美久久婷婷综合色| 丝袜美腿高跟呻吟高潮一区| 7777精品伊人久久久大香线蕉经典版下载 | 99久久99久久精品国产片果冻| 日本一区二区三区久久久久久久久不| 国产一区二区0| 欧美激情一区二区三区蜜桃视频| 国产.精品.日韩.另类.中文.在线.播放| 国产香蕉久久精品综合网| 国产成人一级电影| 1024成人网色www| 欧美亚州韩日在线看免费版国语版 | 欧日韩精品视频| 午夜久久久久久久久| 51精品国自产在线| 韩国理伦片一区二区三区在线播放| 久久亚洲精华国产精华液 | 欧美日韩午夜影院| 日本不卡一区二区三区高清视频| 欧美成人综合网站| 国产99久久久久久免费看农村| 国产精品久久久久一区二区三区 | 高清不卡在线观看av| 亚洲欧洲综合另类在线| 欧美日韩一区小说| 精品一区二区三区在线播放| 国产亚洲福利社区一区| 91浏览器打开| 日韩不卡一二三区| 中文字幕乱码久久午夜不卡| 在线观看国产精品网站| 免费的成人av| 国产精品国产三级国产aⅴ无密码| 在线免费观看成人短视频| 另类欧美日韩国产在线| 亚洲欧美在线另类| 91精品国产欧美一区二区成人|