{"id":22025176,"url":"https://github.com/drexed/lite-statistics","last_synced_at":"2025-05-07T09:34:27.499Z","repository":{"id":35017997,"uuid":"196761292","full_name":"drexed/lite-statistics","owner":"drexed","description":"Generate statistics from collections of data points","archived":false,"fork":false,"pushed_at":"2023-03-08T20:12:57.000Z","size":128,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-31T08:43:27.632Z","etag":null,"topics":["analytics","ruby","statistics"],"latest_commit_sha":null,"homepage":"https://drexed.github.io/lite-statistics","language":"Ruby","has_issues":false,"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/drexed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-07-13T19:59:31.000Z","updated_at":"2021-07-22T21:21:47.000Z","dependencies_parsed_at":"2024-11-30T07:14:54.285Z","dependency_job_id":"d95a40cb-2fdf-4924-9193-38cd6efba163","html_url":"https://github.com/drexed/lite-statistics","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.016129032258064502","last_synced_commit":"f4317aeaebf487fe33cb5aa756136d748e8c16b8"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drexed","download_url":"https://codeload.github.com/drexed/lite-statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252851629,"owners_count":21814185,"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":["analytics","ruby","statistics"],"created_at":"2024-11-30T07:14:48.666Z","updated_at":"2025-05-07T09:34:27.474Z","avatar_url":"https://github.com/drexed.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lite::Statistics\n\n[![Gem Version](https://badge.fury.io/rb/lite-statistics.svg)](http://badge.fury.io/rb/lite-statistics)\n[![Build Status](https://travis-ci.org/drexed/lite-statistics.svg?branch=master)](https://travis-ci.org/drexed/lite-statistics)\n\nLite::Statistics is a library for generate statistics from collections of data points.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'lite-statistics'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lite-statistics\n\n## Table of Contents\n\n* [Configurations](#configurations)\n* [Descriptive](#descriptive)\n* [Monkey patches](#monkey-patches)\n* [Benchmarks](#benchmarks)\n\n## Configurations\n\nAny and all monkey patches must be explicitly included anywhere you want to use it.\n\nTo globally use the monkey patches, just create an initializer requiring them.\n\n`rails g lite:statistics:install` will generate the following file:\n`../config/initalizers/lite_statistics.rb`\n\nThey can be disabled by commenting any of them out.\n\n```ruby\n# frozen_string_literal: true\n\nrequire 'lite/statistics/monkey_patches'\n```\n\n## Descriptive\n\nSample|Population calculations will have a shorthand alias that defaults to sample.\n\nEx: `variance` =\u003e `sample_variance`\n\n#### Summary\n\n* [Sample|Population Summary](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/SUMMARY.md)\n\n#### Count\n\n* [Sum](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/SUM.md)\n* [Sample|Population Size](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/SIZE.md)\n\n#### Distribution\n\n* [Frequencies](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/FREQUENCIES.md)\n* [Min](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/MIN.md)\n* [Max](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/MAX.md)\n* [Proportions](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/PROPORTIONS.md)\n\n#### Central tendency\n\n* [Mean](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/MEAN.md) aka Average\n* [Median](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/MEDIAN.md)\n* [Mode](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/MODE.md)\n\n#### Dispersion\n\n* [Midrange](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/MIDRANGE.md) aka Midextreme\n* [Range](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/RANGE.md)\n* [Percentile from Value](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/PERCENTILE_FROM_VALUE.md) aka Percentile\n* [Value from Percentile](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/VALUE_FROM_PERCENTILE.md) aka Percentile Rank\n\n#### Spread\n\n* [Sample|Population Variance](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/VARIANCE.md)\n* [Sample|Population Standard Deviation](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/STANDARD_DEVIATION.md)\n* [Sample|Population Coefficient of Variation](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/COEFFICIENT_OF_VARIATION.md)\n* [Sample|Population Standard Error](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/STANDARD_ERROR.md)\n* [Sample|Population Z-Scores](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/ZSCORES.md)\n\n#### Shape\n\n* [Sample|Population Skewness](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/SKEWNESS.md)\n* [Sample|Population Kurtosis](https://github.com/drexed/lite-statistics/blob/master/docs/descriptive/KURTOSIS.md)\n\n## Monkey patches\n\nIncluding monkey patches will give you `Enumerable` access to statistics.\n\n```ruby\n[1, 2, 3, 1].mode #=\u003e 1\n```\n\n## Benchmarks\n\nAll benchmarks are executed using the baseline summary (exact same calculations for each)\nand the full summary (all available calculations for each). Each is generated\nusing an array containing 1 million random integers on the `2.6.3` Ruby version.\n\nView how each compares to other libs by running the [benchmarks](https://github.com/drexed/lite-statistics/tree/master/benchmarks).\n\n#### Baseline summaries\n\nLibrary | # of Calculations | IPS | Speed\n--- | --- | --- | ---\n[lite-statistics](https://github.com/drexed/lite-statistics) | 13 | 2.5 i/s | ---\n[descriptive_statistics](https://github.com/thirtysixthspan/descriptive_statistics) | 13 | 0.6 i/s | 4.16x  slower\n[descriptive-statistics](https://github.com/jtescher/descriptive-statistics) | 13 | 1.8 i/s | 1.40x  slower\n[statistica](https://github.com/tab300/Statistica) | 13 | --- | Too slow to run\n\n#### Full summaries\n\nLibrary | # of Calculations | IPS | Speed\n--- | --- | --- | ---\n[lite-statistics](https://github.com/drexed/lite-statistics) | 22 | 1.0 i/s | ---\n[descriptive_statistics](https://github.com/thirtysixthspan/descriptive_statistics) | 13 | 0.6 i/s | 1.72x  slower\n[descriptive-statistics](https://github.com/jtescher/descriptive-statistics) | 16 | 0.9 i/s | 1.10x  slower\n[statistica](https://github.com/tab300/Statistica) | 19 | --- | Too slow to run\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lite-statistics. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Lite::Statistics project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/lite-statistics/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrexed%2Flite-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-statistics/lists"}