MCPcopy Create free account
hub / github.com/Adam-Vandervorst/PyBHV / _perfect_overlap

Method _perfect_overlap

bhv/embedding.py:62–91  ·  view source on GitHub ↗

Generate a list of intervals dividing a given range [low, high] into 'divisions' with a specified 'overlap'. Example: >>> Intervals._perfect_overlap(0.0, 1.0, divisions=5, overlap=2, ends=True) [(0.0, 0.1), (0.0, 0.2), (0.1, 0.3), (0.2, 0.4), (0.3, 0.5), (0.4, 0.6),

(low: float, high: float, divisions: int, overlap: int, ends: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

perfectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected