Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hsugawa8651/groupnumbers.jl
Julia package for grouping adjacent elements in a given iterator
https://github.com/hsugawa8651/groupnumbers.jl
grouping iterators julia julia-language julialang
Last synced: about 1 month ago
JSON representation
Julia package for grouping adjacent elements in a given iterator
- Host: GitHub
- URL: https://github.com/hsugawa8651/groupnumbers.jl
- Owner: hsugawa8651
- License: other
- Created: 2024-02-25T08:36:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-06T15:35:34.000Z (6 months ago)
- Last Synced: 2024-10-12T22:23:22.929Z (about 1 month ago)
- Topics: grouping, iterators, julia, julia-language, julialang
- Language: Julia
- Homepage: https://hsugawa8651.github.io/GroupNumbers.jl/
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GroupNumbers
[![Build Status](https://github.com/hsugawa8651/GroupNumbers.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/hsugawa8651/GroupNumbers.jl/actions/workflows/CI.yml?query=branch%3Amain) [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://hsugawa8651.github.io/GroupNumbers.jl/stable/) [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://hsugawa8651.github.io/GroupNumbers.jl/dev/)
Provides iterators for grouping the given iterator of possibly numbers.
## Quick start
```julia
julia> for g in groupby_numbers([ 16e-4, 17e-4, 19e-4, 20e-4 ] .+ 1; rtol=2e-4)
@show g
end
g = [1.0016, 1.0017]
g = [1.0019, 1.002]
```Please refer to the [documentation](https://hsugawa8651.github.io/GroupNumbers.jl/stable/) for comprehensive guides and examples.