⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 searchmub.m

📁 every function has its own help which can be obtained by typing "help name" where "name" is the fu
💻 M
字号:
function [mub,it] = searchMub(vDist,cv_mub,epsilon,itmax);
%   function [mub,it] = searchMub(vDist,cv_mub,epsilon,itmax);
%
%   Search for upper bound value of fuzzy parameter
%
%   vDist   = vector of distances between samples of data set
%   cv_mub  = minimum cv which gives no clustering structure
%   epsilon = scalar (stopping rule 1)
%   itmax   = maximum number of iterations (stopping rule 2)
%
%   Write by : DD
%       date : 2001/06/24

Yo = vDist/max(vDist);
cv = std(Yo)/mean(Yo);
mubMax = 1000; % can be adjusted by user
it = 1;
if (abs(cv-cv_mub)<epsilon)
    mub = 2;
else
    if (cv>cv_mub)
        m1 = 2;
        m2 = mubMax;
    else
        m1 = 1+epsilon;
        m2 = 2;
    end 
    while ((it<itmax) & (abs(cv-cv_mub)>epsilon))
        m = (m1+m2)/2;
        d = 1/(m-1);
        Y = Yo.^d;
        cv = std(Y)/mean(Y);
        if (abs(cv-cv_mub)<epsilon)
            mub = m;
        elseif (cv>cv_mub)
            m1 = m;
        else  
            m2 = m;
        end
        it = it+1;
    end
end
return; %% end of function searchMub.m;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -