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

📄 make_small.m

📁 轨迹聚类工具箱及其相关说明和文章(台风路径分类等)。如有问题可与wyljess@126.com联系
💻 M
字号:
function [mccv,ops] = make_small(mccvout)
%MAKE_SMALL
%   [MCCV,Ops] = MAKE_SMALL(mccvout)

% Scott J. Gaffney  5 November 2003
% School of Information and Computer Science
% University of California, Irvine

PROGNAME = 'make_small';
if (~nargin)
  try; help(PROGNAME); catch; end
  return;
end

mccv=[];
ops=[];

methods = fieldnames(mccvout);
if (isempty(methods)),  return; end
NumMethods = length(methods);

% grab the options
ops = getfield(mccvout,methods{1});
ops = rmfield(ops,'runs');
if (isfield(ops,'RandPoints'))
  ops.RandPoints = ops.RandPoints(1);
end

% build the test score matrices
for i=1:NumMethods
  scores=[];
  runs = getfield(mccvout,methods{i},'runs');
  if (isfield(runs,'TestSSE'))
    scores = setfield(scores,'sse',[runs.TestSSE]);
  end
  if (isfield(runs,'TestLike'))
    scores = setfield(scores,'like',[runs.TestLike]);
  end
  if (isfield(runs,'bic'))
    scores = setfield(scores,'bic',[runs.bic]);
  end
  mccv = setfield(mccv,methods{i},scores);
end

⌨️ 快捷键说明

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