Uniform Spherical Distribution Generator

Versione 1.1.0.0 (4,57 KB) da David
Generate uniformly random points within a sphere of dimension N
203 download
Aggiornato 21 mag 2018

Visualizza la licenza

This function generates uniformly random points within a sphere of dimension N. It does this efficiently by inverting cumulative distribution functions, not by generating a uniform rectangular distribution and filtering away. This is particularly important for high dimensional spheres. In 6D for example, only one in twelve points generated in a 6D rectangle lies within the inner 6D sphere.
An example use-case of this function would be to initialize the positions and velocities of an ensemble of particles in three dimensions. In many physics simulations, it is common to perform such initializations independently for each dimension, which wastes processing power on uninteresting regions of phase-space near the corners of the 6D hypercube.

Cita come

David (2025). Uniform Spherical Distribution Generator (https://it.mathworks.com/matlabcentral/fileexchange/67384-uniform-spherical-distribution-generator), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.1.0.0

Prettier picture, more tags, better description.
Spelling Errors.
More appropriate title.

1.0.0.0