Samples continuous points in an interval. It allows for both linear and
uniform random sampling. It is also possible to draw points only in the
simplex of the interval.
Inputs:
- lo : lower bound (column of length D)
- hi : upper bound (column of length D)
- N : number of points to sample
- useSimplex : put 1 if you want to sample from the simplex of the bound, 0 otherwise
- linearly : put 1 if you want the points to be linearly spaced, 0 otherwise
Outputs:
- points : D-by-NN matrix with random points, where NN >= N
More information about sampling from the simplex:
http://math.stackexchange.com/questions/502583/uniform-sampling-of-points-on-a-simplex
引用格式
Simone (2024). Continuous sampling: linear, random, from simplex (https://www.mathworks.com/matlabcentral/fileexchange/50480-continuous-sampling-linear-random-from-simplex), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Object Detection Using Features >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!