📄 rand_hypersphere.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -