rand_hypersphere.m

来自「一个用EM算法的源程序」· M 代码 · 共 7 行

M
7
字号
function X = rand_hypersphere(ambientDimension, sampleCount)% Generate sampleCount points sampled uniformly from within a hypersphere% of a random radius lying in an ambient space of dimension ambientDimension.% Columns of X are data points.X = 100*rand()*(rand(ambientDimension, sampleCount)-0.5*ones(ambientDimension,sampleCount));

⌨️ 快捷键说明

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