?? gen_vq.m
字號:
%==================================================================
% Generate a VQ codebook by the K-means algorithm.
%
% The training parameters are given by a structure defined as:
%
% (1) Par.Size : codebook size
% (2) Par.MaxIter : maximum iterations
% (3) Par.RandSeed : random seed;
%
%
% Usage: CBook = Gen_VQ(Data, Par);
%
% Example:
%
% suppose Data(1).Mat, Data(2).Mat, ...., contain training data,
%
% MyPar.Size = 8; % 8 code vectors
% MyPar.MaxIter = 20;
% MyPar.RandSeed = 1973;
%
% VQ = Gen_Vq(Data, MyPar);
%
% Each row of VQ.Mat is a code vector.
%------------------------------------------------------------------
% Author : Jialong HE
% Date : June 25, 1999
%==================================================================
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -