{ } Raw JSON

bundles / scipy latest / scipy / spatial / _spherical_voronoi / SphericalVoronoi / calculate_areas

function

scipy.spatial._spherical_voronoi:SphericalVoronoi.calculate_areas

source: /scipy/spatial/_spherical_voronoi.py :319

Signature

def   calculate_areas ( self )

Summary

Calculates the areas of the Voronoi regions.

Extended Summary

For 2D point sets, the regions are circular arcs. The sum of the areas is 2 * pi * radius.

For 3D point sets, the regions are spherical polygons. The sum of the areas is 4 * pi * radius**2.

Returns

areas : double array of shape (npoints,)

The areas of the Voronoi regions.

Aliases

  • scipy.spatial.SphericalVoronoi.calculate_areas