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

📄 multi2dicho.m

📁 该工具箱是用于统计模式识别的
💻 M
字号:
function [Idicho]=multi2dicho(Imulti,class1)% MULTI2DICHO decomposes multi-class problem to dichotomi.%   [Idicho]=multi2dicho(Imulti,class1)%
% MULTI2DICHO decompose multi-class classification problem
%   into dichotomi problem - class1 against the others.
%   
% Input:
%  Imulti [1xM] class labels \in { 1,2,...K } of multi-class problem.
%  class1 [1x1] labels which will form the first class of the %     dichotomi problem.
%
% Output:
%  Idicho [1xM] class labels \in {1,2}.
%

% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 23.12.1999, 5.4.2000
% Modifications
% 10-april-2001, V. Franc, created

indexes=[];for i = 1:length(class1),  indexes=[indexes,find(Imulti==class1(i))]; endIdicho=2*ones(1,length(Imulti));Idicho(indexes)=1;return;

⌨️ 快捷键说明

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