gencirc.m

来自「matlab 模式识别工具包 希望能对你们有用」· M 代码 · 共 21 行

M
21
字号
%GENCIRC Generation of a one-class circular dataset% % 	A = gencirc(n,s)%% Generation of a one-class circular dataset with radius 1 and% normally distributes radial noise with standard deviation s.% % See also datasets% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsfunction a = gendatc(n,s)if nargin < 1, n = 1; endif nargin < 2, s = 0.1; endalf = rand(n,1)*2*pi;r = ones(n,1) + randn(n,1)*s;a = [r.*sin(alf),r.*cos(alf)];a = dataset(a);

⌨️ 快捷键说明

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