Skip to content

shape_index is the same as radii_ratio #248

@martinfleis

Description

@martinfleis

We have a duplication in shape indices. shape_index is the same as radii_ratio.

return numpy.sqrt(shapely.area(ga) / numpy.pi) / shapely.minimum_bounding_radius(ga)

and

esda/esda/shape.py

Lines 193 to 195 in 17c5f00

r_eac = numpy.sqrt(shapely.area(ga) / numpy.pi)
r_mbc = shapely.minimum_bounding_radius(ga)
return r_eac / r_mbc

are the same formulas.

We should probably deprecate one in favour of the other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions