{"id":20339402,"url":"https://github.com/matsadler/halton-rb","last_synced_at":"2025-04-11T23:12:56.870Z","repository":{"id":56875707,"uuid":"363827740","full_name":"matsadler/halton-rb","owner":"matsadler","description":"A Ruby library, written in Rust, for generating Halton sequences","archived":false,"fork":false,"pushed_at":"2023-08-11T04:35:50.000Z","size":34,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T19:04:30.780Z","etag":null,"topics":["halton-sequence","ruby","rust"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matsadler.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-03T05:39:32.000Z","updated_at":"2024-10-10T03:41:38.000Z","dependencies_parsed_at":"2023-02-17T01:46:36.185Z","dependency_job_id":null,"html_url":"https://github.com/matsadler/halton-rb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fhalton-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fhalton-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fhalton-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fhalton-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsadler","download_url":"https://codeload.github.com/matsadler/halton-rb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125627,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["halton-sequence","ruby","rust"],"created_at":"2024-11-14T21:16:50.964Z","updated_at":"2025-04-11T23:12:56.838Z","avatar_url":"https://github.com/matsadler.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Halton\n\nA Ruby library for the fast generation of Halton sequences, a deterministic low\ndiscrepancy sequence that appears to be random. The uniform distribution and\nrepeatability makes the sequence ideal for choosing sample points or placing\nobjects in 2D or 3D space.\n\n  grid = 10.times.map {10.times.map {\".\"}}\n  Halton.each(2, 3).take(26).zip(\"A\"..\"Z\") do |(x, y), c|\n    grid[y * 10][x * 10] = c\n  end\n  grid.each {|row| puts row.join(\" \")}\n\nOutputs:\n\n  . . R . . I . . . .\n  . L . . . . U C . .\n  X . . F . . . . . O\n  . . . J . A . . . .\n  . D . . . . M S . .\n  P . . . V . . . G .\n  . . B . . Y . . . .\n  . T . . . . E . K .\n  H . . . N . . . . W\n  . . . Z . Q . . . .\n\nThe method of generation is adapted from \"Fast, portable, and reliable\nalgorithm for the calculation of Halton numbers\" by Miroslav Kolář and Seamus F.\nO'Shea.\n\n== Install\n\nInstall via Rubygems:\n\n  gem install halton\n\nor add it to your Gemfile if you're using Bundler:\n\n  gem \"halton\"\n\nand then run the bundle command to install.\n\nThis gem requires a Rust compiler and the +cargo+ build tool to build the gem's\nnative extension. See https://www.rust-lang.org/tools/install for how to\ninstall Rust. +cargo+ is usually part of the Rust installation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsadler%2Fhalton-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsadler%2Fhalton-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsadler%2Fhalton-rb/lists"}