mufasa.location#

Dataclasses for spatially discrete detections, i.e. at a single point.

Classes#

Location

Spatially discrete detection, represented by a geometry, that occurred at some timestamp.

Observation

Probabilistic spatially discrete detection, adding a confidence estimate.

Module Contents#

class mufasa.location.Location#

Spatially discrete detection, represented by a geometry, that occurred at some timestamp.

geometry: shapely.geometry.base.BaseGeometry#
timestamp: float = 0.0#
properties: dict#
property effective_geometry: shapely.geometry.base.BaseGeometry | None#

Geometry expanded by radius/width properties, or raw geometry if not applicable.

Use this instead of geometry whenever spatial footprint matters — e.g. rasterization, intersection checks — so that sensor uncertainty expressed through Observation properties is automatically respected.

Return type:

shapely.geometry.base.BaseGeometry | None

class mufasa.location.Observation#

Bases: Location

Probabilistic spatially discrete detection, adding a confidence estimate.

confidence: float = 0.5#