爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

分享 matlab中格式距离矩阵squareform
kongfeng0824 2013-8-17 14:41
Syntax Z = squareform(y) y = squareform(Z) Z = squareform(y,'tovector') Y = squareform(Z,'tomatrix') Description Z = squareform(y), where y isa vector as created by the pdist function,converts y into a square, symmetric format Z,in which Z(i,j) denotes the distance betwee ...
个人分类: Matlab Study|1033 次阅读|0 个评论
分享 matlab中顺序功能选择sequentialfs
kongfeng0824 2013-8-17 14:39
Syntax inmodel = sequentialfs(fun,X,y) inmodel = sequentialfs(fun,X,Y,Z,...) = sequentialfs(fun,X,...) )= meas; y = species; c = cvpartition(y,'k',10); opts = statset('display','iter'); fun = @(XT,yT,Xt,yt)... (sum(~strcmp(yt,classify(Xt,XT,yT,'quadratic')))); = seque ...
个人分类: Matlab Study|725 次阅读|0 个评论
分享 matlab中计算物体的两两之间的距离pdist
kongfeng0824 2013-8-17 14:37
Syntax D = pdist(X) D = pdist(X, distance ) Description D = pdist(X) computes the Euclidean distance between pairs of objects in m -by- n data matrix X. Rows of X correspond to observations, and columns correspond to variables. D is a row vector of length m ( m –1)/2, corresponding ...
个人分类: Matlab Study|983 次阅读|0 个评论
分享 matlab中凝聚层次聚类树linkage
kongfeng0824 2013-8-17 14:34
Syntax Z = linkage(X) Z = linkage(X,method) Z = linkage(X,method,metric) Z = linkage(X,method,pdist_inputs) Z = linkage(X,method,metric,'savememory',value) Z = linkage(Y) Z = linkage(Y,method) Description Z = linkage(X) returnsa matrix Z that encodes a tree of hierarch ...
个人分类: Matlab Study|759 次阅读|0 个评论
分享 matlab中不一致系数inconsistent
kongfeng0824 2013-8-17 14:31
Syntax Y = inconsistent(Z) Y = inconsistent(Z,d) Description Y = inconsistent(Z) computesthe inconsistency coefficient for each link of the hierarchical clustertree Z, where Z isan (m-1)-by-3 matrix generated by the linkage function. The inconsistencycoefficient characteriz ...
个人分类: Matlab Study|446 次阅读|0 个评论
分享 matlab中Cophenetic相关系数函数cophenet
kongfeng0824 2013-8-17 14:29
Syntax c = cophenet(Z,Y) = cophenet(Z,Y) Description c = cophenet(Z,Y) computes the cophenetic correlation coefficient for the hierarchical cluster tree represented by Z. Z is the output of the linkage function. Y contains the distances or dissimilarities used to construct Z ...
个人分类: Matlab Study|2217 次阅读|0 个评论
分享 matlab中从数据凝聚集群clusterdata
kongfeng0824 2013-8-17 14:26
Syntax T = clusterdata(X,cutoff) T = clusterdata(X,Name,Value) Description T = clusterdata(X,cutoff) T = clusterdata(X,Name Examples The example first creates a sample data set of random numbers. It then uses clusterdata to compute the distances between items in ...
个人分类: Matlab Study|668 次阅读|0 个评论
分享 matlab中 根据linkage函数的输出创建聚类cluster
kongfeng0824 2013-8-17 14:17
Syntax T = cluster(Z,'cutoff',c) T = cluster(Z,'cutoff',c,'depth',d) T = cluster(Z,'cutoff',c,'criterion',criterion) T = cluster(Z,'maxclust',n) Description T = cluster(Z,'cutoff',c) constructs clusters from the agglomerative hierarchical cluster tree, Z, as generated by the linkage ...
个人分类: Matlab Study|1208 次阅读|0 个评论
分享 matlab中离散均匀分布的随机数函数unidrnd
kongfeng0824 2013-8-11 16:19
Syntax R = unidrnd(N) R = unidrnd(N,m,n,...) R = unidrnd(N, ) Description R = unidrnd(N) generates random numbers for the discrete uniform distribution with maximum N. The parameters in N must be positive integers. N can be a vector, a matrix, or a multidimensional array. ...
个人分类: Matlab Study|600 次阅读|0 个评论
分享 matlab中离散均匀的均值和方差函数unidstat
kongfeng0824 2013-8-11 16:09
Syntax = unidstat(N) Description = unidstat(N) returnsthe mean and variance of the discrete uniform distribution with minimumvalue 1 and maximum value N. The mean of the discrete uniform distribution with parameter N is (N + 1)/2. The varianceis (N2 – 1)/12. Exampl ...
个人分类: Matlab Study|269 次阅读|0 个评论

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

返回顶部