{"id":18564241,"url":"https://github.com/notashelf/stat","last_synced_at":"2025-05-15T18:33:00.845Z","repository":{"id":239233953,"uuid":"798951187","full_name":"NotAShelf/stat","owner":"NotAShelf","description":"Statistical analysis on a set of floating-point numbers","archived":false,"fork":false,"pushed_at":"2024-05-12T11:14:29.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T13:13:22.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotAShelf.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-10T20:38:21.000Z","updated_at":"2024-05-12T11:14:32.000Z","dependencies_parsed_at":"2024-05-10T22:05:58.292Z","dependency_job_id":null,"html_url":"https://github.com/NotAShelf/stat","commit_stats":null,"previous_names":["notashelf/stat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotAShelf","download_url":"https://codeload.github.com/NotAShelf/stat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254397751,"owners_count":22064553,"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":[],"created_at":"2024-11-06T22:14:40.064Z","updated_at":"2025-05-15T18:33:00.821Z","avatar_url":"https://github.com/NotAShelf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stat\n\nPerform statistical analysis on a set of floating-point numbers provided as\ninput.\n\n## Building\n\nWith `rustc` and `gcc` in PATH, run\n\n```bash\nrustc main.rs\n```\n\n## Usage\n\nOnce the program is running, you can start typing numbers separated by spaces or\nnewlines. For example: `1.2 3.4 5.6 7.8 9.0`\n\nAfter entering all your numbers, you can signal the end of input with e.g.\nCTRL+D on Linux and MacOS.\n\n- Input: the program reads numbers from the standard input (stdin). You can\n  provide input by typing numbers separated by spaces or newlines directly into\n  the terminal where the program is running. Alternatively, you can redirect\n  input from a file or another command.\n\n- Output: the program calculates and prints various statistics about the input\n  numbers, including:\n  - The count of numbers (n)\n  - The minimum value (min)\n  - The maximum value (max)\n  - The sum of all numbers (sum)\n  - The mean (average) of the numbers (mean)\n  - The median of the numbers (median)\n  - The mode(s) of the numbers (modes)\n  - The standard deviation of the numbers (stdev)\n  - A histogram representing the distribution of the numbers (histogram)\n\n### Example\n\n```bash\n$ echo \"1.2 3.4 5.6 7.8 9.0\" | ./main \u003e output.txt\n$ cat output.txt\nn 5\nmin 1.2000\nmax 9.0000\nsum 27.0000\nmean 5.4000\nmedian 5.6000\nmodes []\nstdev 3.1780\n1.2000-1.9800   1   **\n1.9800-2.7600   0\n2.7600-3.5400   1   **\n3.5400-4.3200   0\n4.3200-5.1000   0\n5.1000-5.8800   1   **\n5.8800-6.6600   0\n6.6600-7.4400   0\n7.4400-8.2200   1   **\n8.2200-9.0000   0\n```\n\n```bash\n$ echo \"1.2 3.4 5.6 7.8 9.0 1.2\" | ./main \u003e output.txt\n$ cat output.txt\nn 6\nmin 1.2000\nmax 9.0000\nsum 28.2000\nmean 4.7000\nmedian 4.5000\nmodes [1.2]\nstdev 3.3196\n1.2000-1.9800   2   **\n1.9800-2.7600   0\n2.7600-3.5400   1   **\n3.5400-4.3200   0\n4.3200-5.1000   0\n5.1000-5.8800   1   **\n5.8800-6.6600   0\n6.6600-7.4400   0\n7.4400-8.2200   1   **\n8.2200-9.0000   0\n```\n\n## License\n\nLicensed under [BSD 3-Clause License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotashelf%2Fstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotashelf%2Fstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotashelf%2Fstat/lists"}