日志
-
- 分享
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|667 次阅读|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 个评论
-
- 分享
matlab中离散均匀逆累积分布函数unidinv
-
kongfeng0824 2013-8-11 16:08
-
Syntax X = unidinv(P,N) Description X = unidinv(P,N) returns the smallest positive integer X such that the discrete uniform cdf evaluated at X is equal to or exceeds P. You can think of P as the probability of drawing a number as large as X out of a hat with the numbers 1 ...
-
个人分类: Matlab Study|624 次阅读|0 个评论