Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beacon-biosignals/alignedspans.jl
Helpers for continuous <-> discrete indexing
https://github.com/beacon-biosignals/alignedspans.jl
Last synced: about 6 hours ago
JSON representation
Helpers for continuous <-> discrete indexing
- Host: GitHub
- URL: https://github.com/beacon-biosignals/alignedspans.jl
- Owner: beacon-biosignals
- License: mit
- Created: 2022-01-28T18:51:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T11:22:43.000Z (6 months ago)
- Last Synced: 2024-11-07T16:04:07.909Z (8 days ago)
- Language: Julia
- Homepage:
- Size: 406 KB
- Stars: 4
- Watchers: 18
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AlignedSpans
[![Build Status](https://github.com/beacon-biosignals/AlignedSpans.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/beacon-biosignals/AlignedSpans.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/beacon-biosignals/AlignedSpans.jl/branch/main/graph/badge.svg?token=2hUEWxFtim)](https://codecov.io/gh/beacon-biosignals/AlignedSpans.jl)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://beacon-biosignals.github.io/AlignedSpans.jl/stable/)
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://beacon-biosignals.github.io/AlignedSpans.jl/dev/)## Usage
AlignedSpans converts between continuous time spans and discrete sample indices. Time spans describe a time intervals down to a resolution of 1 ns and are usually provided by TimeSpans.jl. Discrete sample indices are associated to signals sampled at some finite rate (e.g. Onda.jl's `Samples` objects).
AlignedSpans provides an `AlignedSpan` type which holds integer indices along with a sample rate. An `AlignedSpan` is thus an discrete index, but since it holds the sample rate, it can be used to represent a continuous time span as well, and it supports the TimeSpans.jl interface.
See the [documentation](https://beacon-biosignals.github.io/AlignedSpans.jl/) for more.