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

📄 getguessvec.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function vec = getGuessVec(G)%% Given the parameters in G, build a vector of paramters to be% used as initializating to our minimization routine when doing% direct gradient ascent rather than EM.%% This takes log(G.z) for z so that we can ensure z is positive alwaysfunction vec = getGuessVec(G)vec = [];if (G.updateZ)  if (G.useLogZ)    vec = [vec; log(G.z(:))];  else    vec = [vec; G.z(:)];  endendif (G.updateU)  vec = [vec; G.u(:)];end%% we want to restrict sigma so that there is only one per classif (G.updateSigma)  tmpSigmas = [];  for cc=1:G.numClass    thisInd = G.class{cc};    thisInd = thisInd(1);    tmpSigmas = [tmpSigmas; G.sigmas(thisInd)];  end  vec = [vec; tmpSigmas];endif (G.updateTime)  vec = [vec; G.d];end  if (G.updateScale)  vec = [vec; G.S];end

⌨️ 快捷键说明

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