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

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

?? demgmm3.m

?? 有關PPCA的計算程序
?? M
字號:
%DEMGMM3 Demonstrate density modelling with a Gaussian mixture model.%%	Description%	 The problem consists of modelling data generated by a mixture of%	three Gaussians in 2 dimensions with a mixture model using diagonal%	covariance matrices.  The priors are 0.3, 0.5 and 0.2; the centres%	are (2, 3.5), (0, 0) and (0,2); the covariances are all axis aligned%	(0.16, 0.64), (0.25, 1) and the identity matrix. The first figure%	contains a scatter plot of the data.%%	A Gaussian mixture model with three components is trained using EM.%	The parameter vector is printed before training and after training.%	The user should press any key to continue at these points.  The%	parameter vector consists of priors (the column), and centres (given%	as (x, y) pairs as the next two columns).  The diagonal entries of%	the covariance matrices are printed separately.%%	The second figure is a 3 dimensional view of the density function,%	while the third shows the axes of the 1-standard deviation circles%	for the three components of the mixture model.%%	See also%	GMM, GMMINIT, GMMEM, GMMPROB, GMMUNPAK%%	Copyright (c) Ian T Nabney (1996-2001)% Generate the datandata = 500;% Fix the seeds for reproducible resultsrandn('state', 42);rand('state', 42);data = randn(ndata, 2);prior = [0.3 0.5 0.2];% Mixture model swaps clusters 1 and 3datap = [0.2 0.5 0.3];datac = [0 2; 0 0; 2 3.5];datacov = [1 1;1 0.25; 0.4*0.4 0.8*0.8];data1 = data(1:prior(1)*ndata,:);data2 = data(prior(1)*ndata+1:(prior(2)+prior(1))*ndata, :);data3 = data((prior(1)+prior(2))*ndata +1:ndata, :);% First cluster has axis aligned variance and centre (2, 3.5)data1(:, 1) = data1(:, 1)*0.4 + 2.0;data1(:, 2) = data1(:, 2)*0.8 + 3.5;% Second cluster has axis aligned variance and centre (0, 0)data2(:,2) = data2(:, 2)*0.5;% Third cluster is at (0,2) with identity matrix for covariancedata3 = data3 + repmat([0 2], prior(3)*ndata, 1);% Put the dataset together againdata = [data1; data2; data3];clcdisp('This demonstration illustrates the use of a Gaussian mixture model')disp('with diagonal covariance matrices to approximate the unconditional')disp('probability density of data in a two-dimensional space.')disp('We begin by generating the data from a mixture of three Gaussians')disp('with axis aligned covariance structure and plotting it.')disp(' ')disp('The first cluster has centre (0, 2).')disp('The second cluster has centre (0, 0).')disp('The third cluster has centre (2, 3.5).')disp(' ')disp('Press any key to continue')pausefh1 = figure;plot(data(:, 1), data(:, 2), 'o')set(gca, 'Box', 'on')% Set up mixture modelncentres = 3;input_dim = 2;mix = gmm(input_dim, ncentres, 'diag');options = foptions;options(14) = 5;	% Just use 5 iterations of k-means in initialisation% Initialise the model parameters from the datamix = gmminit(mix, data, options);% Print out modeldisp('The mixture model has three components and diagonal covariance')disp('matrices.  The model parameters after initialisation using the')disp('k-means algorithm are as follows')disp('    Priors        Centres')disp([mix.priors' mix.centres])disp('Covariance diagonals are')disp(mix.covars)disp('Press any key to continue.')pause% Set up vector of options for EM traineroptions = zeros(1, 18);options(1)  = 1;		% Prints out error values.options(14) = 20;		% Number of iterations.disp('We now train the model using the EM algorithm for 20 iterations.')disp(' ')disp('Press any key to continue.')pause[mix, options, errlog] = gmmem(mix, data, options);% Print out modeldisp(' ')disp('The trained model has priors and centres:')disp('    Priors        Centres')disp([mix.priors' mix.centres])disp('The data generator has priors and centres')disp('    Priors        Centres')disp([datap' datac])disp('Model covariance diagonals are')disp(mix.covars)disp('Data generator covariance diagonals are')disp(datacov)disp('Note the close correspondence between these parameters and those')disp('of the distribution used to generate the data.')disp(' ')disp('Press any key to continue.')pauseclcdisp('We now plot the density given by the mixture model as a surface plot.')disp(' ')disp('Press any key to continue.')pause% Plot the resultx = -4.0:0.2:5.0;y = -4.0:0.2:5.0;[X, Y] = meshgrid(x,y);X = X(:);Y = Y(:);grid = [X Y];Z = gmmprob(mix, grid);Z = reshape(Z, length(x), length(y));c = mesh(x, y, Z);hold ontitle('Surface plot of probability density')hold offdrawnowclcdisp('The final plot shows the centres and widths, given by one standard')disp('deviation, of the three components of the mixture model.  The axes')disp('of the ellipses of constant density are shown.')disp(' ')disp('Press any key to continue.')pause% Try to calculate a sensible position for the second figure, below the firstfig1_pos = get(fh1, 'Position');fig2_pos = fig1_pos;fig2_pos(2) = fig2_pos(2) - fig1_pos(4);fh2 = figure('Position', fig2_pos);h = plot(data(:, 1), data(:, 2), 'bo');hold onaxis('equal');title('Plot of data and covariances')for i = 1:ncentres  v = [1 0];  for j = 1:2    start=mix.centres(i,:)-sqrt(mix.covars(i,:).*v);    endpt=mix.centres(i,:)+sqrt(mix.covars(i,:).*v);    linex = [start(1) endpt(1)];    liney = [start(2) endpt(2)];    line(linex, liney, 'Color', 'k', 'LineWidth', 3)    v = [0 1];  end  % Plot ellipses of one standard deviation  theta = 0:0.02:2*pi;  x = sqrt(mix.covars(i,1))*cos(theta) + mix.centres(i,1);  y = sqrt(mix.covars(i,2))*sin(theta) + mix.centres(i,2);  plot(x, y, 'r-');endhold offdisp('Note how the data cluster positions and widths are captured by')disp('the mixture model.')disp(' ')disp('Press any key to end.')pauseclose(fh1);close(fh2);clear all;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美tk丨vk视频| 日本午夜精品一区二区三区电影| 亚洲精品老司机| 麻豆免费看一区二区三区| 成人国产精品视频| 精品国内片67194| 亚洲最色的网站| 成人一区二区三区视频在线观看| 欧美一级久久久| 香蕉乱码成人久久天堂爱免费| 成人高清av在线| 国产日产欧美一区| 久久国产三级精品| 6080日韩午夜伦伦午夜伦| 亚洲免费观看高清| av中文字幕不卡| 国产精品视频一二| 国产精品18久久久久久久网站| 日韩一级二级三级精品视频| 亚洲午夜电影在线观看| 成人av电影在线| 中文子幕无线码一区tr | 国产精品国产三级国产普通话99| 日韩高清一区在线| 欧美日韩极品在线观看一区| 亚洲综合在线第一页| 99久久精品免费看| 国产精品人成在线观看免费| 高清不卡一区二区| 国产欧美日韩精品a在线观看| 国产资源在线一区| 久久久夜色精品亚洲| 国产.欧美.日韩| 中文字幕中文字幕一区| 不卡高清视频专区| 亚洲欧洲av一区二区三区久久| 国产成a人亚洲| 中文字幕精品一区二区精品绿巨人 | 国产日韩欧美一区二区三区乱码| 久久精品72免费观看| 欧美一级xxx| 极品尤物av久久免费看| 久久久久久综合| 高清不卡一二三区| 亚洲精品国产一区二区三区四区在线| 99视频精品在线| 亚洲自拍偷拍欧美| 欧美一级高清片| 国产综合色视频| 国产欧美一区二区三区鸳鸯浴 | 日韩毛片在线免费观看| 91视频精品在这里| 一区二区三区精品久久久| 欧美色国产精品| 韩国精品一区二区| 中文字幕不卡三区| 欧美女孩性生活视频| 国产一区在线观看麻豆| 国产精品国产精品国产专区不片| 色国产精品一区在线观看| 免费不卡在线视频| 国产精品久久久久久久久免费相片| 91麻豆成人久久精品二区三区| 亚洲成人免费视| 国产日产欧美一区二区视频| 欧美综合色免费| 国产原创一区二区| 亚洲一卡二卡三卡四卡| 26uuu亚洲| 日本高清免费不卡视频| 久久99久国产精品黄毛片色诱| 国产精品女同一区二区三区| 欧美色综合天天久久综合精品| 国精产品一区一区三区mba桃花 | 色综合久久精品| 亚洲成av人片在www色猫咪| 久久综合狠狠综合| 91久久香蕉国产日韩欧美9色| 久久不见久久见中文字幕免费| 夜夜嗨av一区二区三区中文字幕| 久久久久久毛片| 在线不卡的av| www.亚洲激情.com| 国模冰冰炮一区二区| 亚洲一区二区3| 亚洲欧美一区二区在线观看| 精品久久久久香蕉网| 在线观看日韩毛片| eeuss国产一区二区三区| 蜜桃av一区二区在线观看 | 色av成人天堂桃色av| 国产传媒欧美日韩成人| 免费看欧美美女黄的网站| 亚洲自拍偷拍图区| 一区二区三区蜜桃网| 一区免费观看视频| 久久看人人爽人人| 精品国产乱码久久久久久夜甘婷婷 | 欧美人妇做爰xxxⅹ性高电影| 成人一级视频在线观看| 国产综合色在线| 久久99热狠狠色一区二区| 手机精品视频在线观看| 亚洲国产日韩a在线播放性色| 国产精品久久久爽爽爽麻豆色哟哟| 久久午夜老司机| 亚洲精品在线电影| 久久久99久久| 国产亚洲欧洲997久久综合| 欧美哺乳videos| 精品久久久久久久久久久久包黑料 | av电影在线观看一区| 高清shemale亚洲人妖| 国产精品18久久久久久久久| 国产一区999| 国产一区 二区| 高清久久久久久| 成人av在线看| 91偷拍与自偷拍精品| 色香色香欲天天天影视综合网| 欧美色偷偷大香| 欧美日韩激情一区二区三区| 欧美日韩国产精品自在自线| 欧美日韩免费高清一区色橹橹| 欧美丝袜自拍制服另类| 欧美精品 日韩| 日韩欧美在线综合网| 久久影视一区二区| 欧美国产精品专区| 亚洲理论在线观看| 天堂蜜桃91精品| 久草热8精品视频在线观看| 国产乱码精品一区二区三区av| 高清成人免费视频| 欧洲精品一区二区三区在线观看| 欧美日韩视频第一区| 精品少妇一区二区三区在线视频| 久久久久久久综合狠狠综合| 中文字幕在线视频一区| 一区二区三区在线视频观看| 午夜久久久影院| 国产黄色精品网站| 欧美中文字幕久久| 欧美xingq一区二区| 国产精品网站导航| 三级久久三级久久| 国产91清纯白嫩初高中在线观看 | 国产精品911| 欧美性一区二区| 久久久久久97三级| 亚洲欧美偷拍卡通变态| 亚洲国产你懂的| 国产精品99久久久久久似苏梦涵 | 亚洲欧美一区二区不卡| 日本亚洲三级在线| 99久久99久久综合| 91精品国产综合久久香蕉麻豆 | 精品欧美一区二区久久| 国产精品福利一区二区三区| 日韩高清不卡在线| 99久久99久久精品免费观看| 亚洲精品一区二区三区99| 一区二区三区 在线观看视频| 久久精品999| 精品污污网站免费看| 国产精品免费免费| 久久91精品久久久久久秒播| 色综合色综合色综合| 久久综合九色综合97婷婷女人| 亚洲午夜免费电影| 成人h动漫精品一区二| 精品免费国产二区三区 | 欧美日韩一区二区在线视频| 久久精品一区二区三区不卡牛牛 | 欧美日韩国产综合草草| 国产精品久久一级| 久久99精品国产麻豆婷婷| 欧美视频一区二区三区四区| 亚洲欧洲国产日本综合| 国产精品系列在线观看| 欧美成人官网二区| 香蕉久久夜色精品国产使用方法| youjizz国产精品| 欧美国产日韩a欧美在线观看| 久久精品av麻豆的观看方式| 在线成人免费观看| 亚洲成人激情社区| 欧美综合色免费| 伊人色综合久久天天| 91在线免费看| 国产精品另类一区| 处破女av一区二区| 中文成人av在线| 成人av手机在线观看| 中文字幕欧美激情| 不卡的av电影在线观看| 中日韩av电影| a美女胸又www黄视频久久| 亚洲欧美日韩中文播放 | 国产一区二区三区香蕉|