-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Description
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 atypeargument that supports alpha shapes, minimum bounding rectangles, minimum area rectangles, and minimum bounding circles. This would require putting a dedicatedconvex_hullfunction elsewhere. Since we could sethull's default to be the convex hull, this can actually be made API-transparent 😄mbrshould be expanded tominimum_bounding_rectangle- we should make an import-safe
minimum_area_rectangleand borrow/import the opencv implementation of the minimum area rectangle. - we should rename
skyumtominimum_bounding_circle, or use it as a fallback if we cannot useopencv's minimum bounding circle - docstring for
skyumneeds 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
centrographyis available directly inpointpats... is this intentional? skyumshould return in the same manner asellipse. I think they both should give some kind ofnamedtuplereturn value that has(center, radius)or(center, semimajor, semiminor, rotation).
Performance
mbrdoes a loop in python through all points and explicitly finds the minimum. We should probably use a sort for a faster solution?skyumcan be easily numba-ized, but I'm not sure if it'd matter much.
New statistics
- local K/F functions