MCPcopy Create free account
hub / github.com/NickFoubert/simple-segment / slidingwindowsegment

Function slidingwindowsegment

segment.py:2–34  ·  view source on GitHub ↗

Return a list of line segments that approximate the sequence. The list is computed using the sliding window technique. Parameters ---------- sequence : sequence to segment create_segment : a function of two arguments (sequence, sequence range) that returns a line segment

(sequence, create_segment, compute_error, max_error, seq_range=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected