package
0.0.0-20241219150934-9249a2757f07
Repository: https://github.com/smart-core-os/sc-golang.git
Documentation: pkg.go.dev

# Functions

ActiveAt finds the active segment at time d.
Cut divides a segment in two along d.
Duration returns the total duration for all the given segments.
MagnitudeAt returns the magnitude of the segment active at d.
Max returns the index of the segment with the largest magnitude of all non-zero length segments.
MaxAfter returns the index of the segment with the largest magnitude of all non-zero length segments after d time.
MaxMagnitude returns the largest segment magnitude of all non-zero length segments.
Shift adjusts the offset of the given segments by d.
Sum combines the segment lists given by segmentSlices together into a single segment list.
SumMagnitude sums the magnitude of all the given segments.