Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enhancement wishlist #47

@ljwolf

Description

@ljwolf

This is a running list of enhancements burbling up of when writing the gdsbook/book chapter on point pattern analysis.

additional hulling measures

  • hull() should be general, with a type argument that supports alpha shapes, minimum bounding rectangles, minimum area rectangles, and minimum bounding circles. This would require putting a dedicated convex_hull function elsewhere. Since we could set hull's default to be the convex hull, this can actually be made API-transparent 😄
  • mbr should be expanded to minimum_bounding_rectangle
  • we should make an import-safe minimum_area_rectangle and borrow/import the opencv implementation of the minimum area rectangle.
  • we should rename skyum to minimum_bounding_circle, or use it as a fallback if we cannot use opencv's minimum bounding circle
  • docstring for skyum needs to be brought in line with other functions/classes (my bad 😥)

API consistency

  • Elsewhere in the library, we avoid exposing everything at root now. Here, though, everything in centrography is available directly in pointpats... is this intentional?
  • skyum should return in the same manner as ellipse. I think they both should give some kind of namedtuple return value that has (center, radius) or (center, semimajor, semiminor, rotation).

Performance

  • mbr does a loop in python through all points and explicitly finds the minimum. We should probably use a sort for a faster solution?
  • skyum can be easily numba-ized, but I'm not sure if it'd matter much.

New statistics

  • local K/F functions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions