{"id":17109159,"url":"https://github.com/dkackman/linqstatistics","last_synced_at":"2025-04-05T03:08:55.853Z","repository":{"id":9903867,"uuid":"11911595","full_name":"dkackman/LinqStatistics","owner":"dkackman","description":"Linq extensions to calculate basic statistics","archived":false,"fork":false,"pushed_at":"2024-03-27T00:58:11.000Z","size":31612,"stargazers_count":100,"open_issues_count":0,"forks_count":29,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-29T02:04:44.050Z","etag":null,"topics":["c-sharp","linq-extensions","statistics"],"latest_commit_sha":null,"homepage":"https://dkackman.github.io/LinqStatistics/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkackman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","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":"2013-08-05T23:51:27.000Z","updated_at":"2024-12-22T07:48:15.000Z","dependencies_parsed_at":"2024-06-18T13:54:53.403Z","dependency_job_id":"0d0589cd-a1a5-4f5b-bdf7-2006f155f3c0","html_url":"https://github.com/dkackman/LinqStatistics","commit_stats":{"total_commits":223,"total_committers":6,"mean_commits":"37.166666666666664","dds":"0.022421524663677084","last_synced_commit":"7a22b13441828ebd3827bb3fefe04ceeb4492f1b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FLinqStatistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FLinqStatistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FLinqStatistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FLinqStatistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkackman","download_url":"https://codeload.github.com/dkackman/LinqStatistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280270,"owners_count":20912967,"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":["c-sharp","linq-extensions","statistics"],"created_at":"2024-10-14T16:22:19.677Z","updated_at":"2025-04-05T03:08:55.836Z","avatar_url":"https://github.com/dkackman.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LinqStatistics\n\n[![.NET](https://github.com/dkackman/LinqStatistics/actions/workflows/dotnet.yml/badge.svg)](https://github.com/dkackman/LinqStatistics/actions/workflows/dotnet.yml)\n[![CodeQL](https://github.com/dkackman/LinqStatistics/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/dkackman/LinqStatistics/actions/workflows/github-code-scanning/codeql)\n[![NuGet](https://img.shields.io/nuget/dt/LinqStatistics)](https://www.nuget.org/packages/LinqStatistics/)\n\n- [API Documentation](https://dkackman.github.io/LinqStatistics/)\n\nLinq extensions to calculate basic statistics.\n\nExtension methods to compute basic statistics modeled after Enumerable.Average. Stats include:\n\n- Covariance\n- Median\n- Mode\n- Pearson's Correlation Coefficient\n- Range\n- Standard Deviation (sample and population)\n- Variance (sample and population)\n- Root Mean Square\n- Least Squares Linear Regression\n- CountEach\n- Histogram\n\nBasic usage looks like:\n\n```csharp\nstatic void Main(string[] args)\n{\n    IEnumerable\u003cint\u003e data = new int[] { 1, 2, 5, 6, 6, 8, 9, 9, 9 };\n\n    Console.WriteLine(\"Count = {0}\", data.Count());\n    Console.WriteLine(\"Average = {0}\", data.Average());\n    Console.WriteLine(\"Median = {0}\", data.Median());\n    Console.WriteLine(\"Mode = {0}\", data.Mode());\n    Console.WriteLine(\"Sample Variance = {0}\", data.Variance());\n    Console.WriteLine(\"Sample Standard Deviation = {0}\", data.StandardDeviation());\n    Console.WriteLine(\"Population Variance = {0}\", data.VarianceP());\n    Console.WriteLine(\"Population Standard Deviation = {0}\", data.StandardDeviationP());\n    Console.WriteLine(\"Range = {0}\", data.Range());\n}\n```\n\n## Building\n\nThis project makes heavy use of T4 templates. You will need Visual Studio and [this extension](https://github.com/RdJNL/TextTemplatingCore) if you want to build from source. VSCode doesn't seem to support T4 templates, nor does `dotnet build`.\n\n## Older Versions\n\nThe latest version of this library target .NET 8 LTS. If you need to target older versions of .NET, you can find the appropriate version of this library on NuGet. [Version 2.3.0](https://www.nuget.org/packages/LinqStatistics/?version=2.3.0) targets .Net Standard 1.1 and .Net Framework 4.x.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkackman%2Flinqstatistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkackman%2Flinqstatistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkackman%2Flinqstatistics/lists"}