Continuous sampling: linear, random, from simplex
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
Citar como
Simone (2026). Continuous sampling: linear, random, from simplex (https://es.mathworks.com/matlabcentral/fileexchange/50480-continuous-sampling-linear-random-from-simplex), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Object Detection Using Features >
Etiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.5.0.0 | fix case with simplex = 1 and dim = 1 |
||
| 1.4.0.0 | Fixed a small error that occurred when sampling linearly in 1D.
|
||
| 1.3.0.0 | Tags fixed. |
||
| 1.2.0.0 | Added the possibility to do linear sampling also in the simplex. |
||
| 1.1.0.0 | Changed title. |
||
| 1.0.0.0 |
