{"id":15062328,"url":"https://github.com/brianary/statistics-lite","last_synced_at":"2025-04-10T14:22:04.208Z","repository":{"id":27401184,"uuid":"30877653","full_name":"brianary/Statistics-Lite","owner":"brianary","description":"A trivial Perl statistics module.","archived":false,"fork":false,"pushed_at":"2021-09-06T03:53:15.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T13:04:15.441Z","etag":null,"topics":["perl-module","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Statistics::Lite","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianary.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-16T16:47:09.000Z","updated_at":"2023-01-01T20:24:06.000Z","dependencies_parsed_at":"2022-07-18T12:48:14.190Z","dependency_job_id":null,"html_url":"https://github.com/brianary/Statistics-Lite","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/brianary%2FStatistics-Lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FStatistics-Lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FStatistics-Lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FStatistics-Lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianary","download_url":"https://codeload.github.com/brianary/Statistics-Lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248233935,"owners_count":21069493,"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":["perl-module","perl5"],"created_at":"2024-09-24T23:34:30.702Z","updated_at":"2025-04-10T14:22:04.192Z","avatar_url":"https://github.com/brianary.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nStatistics::Lite - Small stats stuff.\n\n# SYNOPSIS\n\n        use Statistics::Lite qw(:all);\n\n        $min= min @data;\n        $mean= mean @data;\n\n        %data= statshash @data;\n        print \"sum= $data{sum} stddev= $data{stddev}\\n\";\n\n        print statsinfo(@data);\n\n# DESCRIPTION\n\nThis module is a lightweight, functional alternative to larger, more complete,\nobject-oriented statistics packages.\nAs such, it is likely to be better suited, in general, to smaller data sets.\n\nThis is also a module for dilettantes. \n\nWhen you just want something to give some very basic, high-school-level statistical values, \nwithout having to set up and populate an object first, this module may be useful.\n\n## NOTE\n\nThis module implements standard deviation and variance calculated by both the unbiased and biased estimators.\n\n# FUNCTIONS\n\n- `min(@data)`, `max(@data)`, `range(@data)`, `sum(@data)`, `count(@data)`\n\n    Return the minimum value, maximum value, range (max - min),\n    sum, or count of values in `@data`.\n    (Count simply returns `scalar(@data)`. **Please note** that this module does not ignore undefined values in your\n    data; instead those are treated as zero.)\n\n- `mean(@data)`, `median(@data)`, `mode(@data)`\n\n    Calculates the mean, median, or mode average of the values in `@data`.\n    (In the event of ties in the mode average, their mean is returned.)\n\n- `variance(@data)`, `stddev(@data)`\n\n    Return the standard deviation or variance of `@data` for a sample (same as Excel's STDEV).\n    This is also called the Unbiased Sample Variance and involves dividing the \n    sample's squared deviations by N-1 (the sample count minus 1).\n    The standard deviation is just the square root of the variance.\n\n- `variancep(@data)`, `stddevp(@data)`\n\n    Return the standard deviation or variance of `@data` for the population (same as Excel's STDEVP).\n    This involves dividing the squared deviations of the population by N (the population size).\n    The standard deviation is just the square root of the variance.\n\n- `statshash(@data)`\n\n    Returns a hash whose keys are the names of all the functions listed above,\n    with the corresponding values, calculated for the data set.\n\n- `statsinfo(@data)`\n\n    Returns a string describing the data set, using the values detailed above.\n\n- `frequencies(@data)`\n\n    Returns a hash, the keys are the distinct values in the data set,\n    and the values are the number of times that value occurred in the data set.\n\n## Import Tags\n\nThe `:all` import tag imports all functions from this module into the\ncurrent namespace (use with caution).\nTo import the individual statistical funcitons, use the import tag `:funcs`;\nuse `:stats` to import `statshash(@data)` and `statsinfo(@data)`.\n\n# AUTHOR\n\nBrian Lalonde \u003cbrian@webcoder.info\u003e, \n`stddev(@data)`, `stddevp(@data)`, `variance(@data)`, `variancep(@data)`, \nand additional motivation by Nathan Haigh.\n\nThe project lives at https://github.com/brianary/Statistics-Lite\n\n# COPYRIGHT AND LICENSE\n\nCopyright 2000 Brian Lalonde \u003cbrian@webcoder.info\u003e and Nathan Haigh,\nwith kind support from Alexander Zangerl.\n\nThis library is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself.\n\n# SEE ALSO\n\nperl(1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianary%2Fstatistics-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianary%2Fstatistics-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianary%2Fstatistics-lite/lists"}