simplify

method of dascore.core.coords.CoordSegmented source

simplify(
    self ,
    tolerance = None,
)-> ‘BaseCoord’

Return the simplest coordinate representing the same values.

Segments are greedily re-fit as evenly sampled ranges; a fit is accepted only when no value moves by more than tolerance. With a sufficient tolerance a fully contiguous segmented coordinate collapses to a single CoordRange.

Parameters

Parameter Description
tolerance The maximum amount any coordinate value may change. For time-like
coordinates this is a timedelta (numeric values interpreted as
seconds). None or 0 permit only exact simplifications.