{"id":18259989,"url":"https://github.com/hungrybluedev/statistics","last_synced_at":"2025-04-08T23:44:32.820Z","repository":{"id":109592506,"uuid":"244117911","full_name":"hungrybluedev/Statistics","owner":"hungrybluedev","description":"An easy to use Statistics library in Java.","archived":false,"fork":false,"pushed_at":"2023-05-09T18:46:12.000Z","size":33,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T18:36:24.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/hungrybluedev.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":"2020-03-01T09:04:49.000Z","updated_at":"2020-03-25T06:26:24.000Z","dependencies_parsed_at":"2024-11-05T11:13:24.328Z","dependency_job_id":null,"html_url":"https://github.com/hungrybluedev/Statistics","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungrybluedev%2FStatistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungrybluedev%2FStatistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungrybluedev%2FStatistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungrybluedev%2FStatistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hungrybluedev","download_url":"https://codeload.github.com/hungrybluedev/Statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947825,"owners_count":21023058,"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-05T10:41:24.808Z","updated_at":"2025-04-08T23:44:32.799Z","avatar_url":"https://github.com/hungrybluedev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📈 Statistics\n\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/hungrybluedev/Statistics?include_prereleases\u0026style=plastic) ![Travis (.org)](https://img.shields.io/travis/hungrybluedev/Statistics) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ce2aaa29ced74f41a1399d4c7e9faeae)](https://app.codacy.com/manual/hungrybluedev/Statistics?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=hungrybluedev/Statistics\u0026utm_campaign=Badge_Grade_Dashboard)\n\n## ✨ Introduction\n\nAn easy to use Statistics library in Java. It is meant to be as general as possible yet retain the usability and clean implementation.\n\n## 🛠 Minimal Usage Example\n\n```java\nSampleBuilder builder = new SampleBuilder(\"Runtimes\", \"s\");\n\nfor (int i = 0; i \u003c ITERATION_LIMIT; i++) {\n    long timeStart = System.currentTimeMillis();\n\n    // The code to be timed goes here.\n\n    new BigInteger(1024, 2048, new Random());\n\n    long timeEnd = System.currentTimeMillis();\n\n    builder.addObservation((timeEnd - timeStart) / 1000.0);\n}\n\nSample runtimes = builder.buildSample();\nSystem.out.println(runtimes);\n```\n\nOutput of the code will be something like:\n\n```none\n0.121 s\n0.147 s\n0.22 s\n0.115 s\n0.084 s\n0.025 s\n0.353 s\n0.209 s\n0.021 s\n0.223 s\n...\n0.015 s\n0.521 s\n0.03 s\n0.017 s\n0.036 s\n\nSummary Statistics for Sample: Runtimes\n\nCount   :      50\nSum     : 4.757 s\nMean    : 0.095 s\nVariance: 0.011 s\nStd Dev : 0.106 s\n```\n\n## 🔄 Status\n\nCurrently it is pre-alpha software. There _will_ be breaking changes as we move forward.\n\n##  Versions\n\n### 0.0.1\n\nThe first exposure to Code Review was in [this post](https://codereview.stackexchange.com/questions/238062/statistics-library-with-sample-samplebuilder-and-tests). I realised that there are significant architectural changes that have to be made to make the code better.\n\nThe JavaDoc for Statistics v0.0.1 - [HungryBlueDev.in](https://hungrybluedev.in/docs/Statistics/0.0.1/)\n\n## 📝 To Do\n\n1. Make Sample completely immutable.\n2. Replace the idea of state variables with initial parameters during sample build time.\n3. Incorporate the use of Persistent Data Structures to improve performance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungrybluedev%2Fstatistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhungrybluedev%2Fstatistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungrybluedev%2Fstatistics/lists"}