.. _example_algorithms_fig_volume_ratio: Curse of Dimensionality: Volume Ratio ------------------------------------- This figure shows the ratio of the volume of a unit hypercube to the volume of an inscribed hypersphere. The curse of dimensionality is illustrated in the fact that this ratio approaches zero as the number of dimensions approaches infinity. .. image:: ../images/algorithms/fig_volume_ratio_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_volume_ratio.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_volume_ratio.py :lines: 10- .. raw:: html
:download:`[download source: fig_volume_ratio.py] ` .. raw:: html