https://github.com/dkackman/linqstatistics

Linq extensions to calculate basic statistics

https://github.com/dkackman/linqstatistics

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.3%) to scientific vocabulary

Keywords

c-sharp linq-extensions statistics
Last synced: 6 months ago · JSON representation

Repository

Linq extensions to calculate basic statistics

Basic Info
Statistics
  • Stars: 103
  • Watchers: 17
  • Forks: 29
  • Open Issues: 0
  • Releases: 6
Topics
c-sharp linq-extensions statistics
Created over 12 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Code of conduct

README.md

LinqStatistics

.NET CodeQL NuGet

Linq extensions to calculate basic statistics.

Extension methods to compute basic statistics modeled after Enumerable.Average. Stats include:

  • Covariance
  • Median
  • Mode
  • Pearson's Correlation Coefficient
  • Range
  • Standard Deviation (sample and population)
  • Variance (sample and population)
  • Root Mean Square
  • Least Squares Linear Regression
  • CountEach
  • Histogram

Basic usage looks like:

```csharp static void Main(string[] args) { IEnumerable data = new int[] { 1, 2, 5, 6, 6, 8, 9, 9, 9 };

Console.WriteLine("Count = {0}", data.Count());
Console.WriteLine("Average = {0}", data.Average());
Console.WriteLine("Median = {0}", data.Median());
Console.WriteLine("Mode = {0}", data.Mode());
Console.WriteLine("Sample Variance = {0}", data.Variance());
Console.WriteLine("Sample Standard Deviation = {0}", data.StandardDeviation());
Console.WriteLine("Population Variance = {0}", data.VarianceP());
Console.WriteLine("Population Standard Deviation = {0}", data.StandardDeviationP());
Console.WriteLine("Range = {0}", data.Range());

} ```

Building

This project makes heavy use of T4 templates. You will need Visual Studio and this extension if you want to build from source. VSCode doesn't seem to support T4 templates, nor does dotnet build.

Older Versions

The 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 targets .Net Standard 1.1 and .Net Framework 4.x.

Owner

  • Name: Don Kackman
  • Login: dkackman
  • Kind: user
  • Location: St. Paul, MN USA

GitHub Events

Total
  • Watch event: 4
Last Year
  • Watch event: 4

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 238
  • Total Committers: 5
  • Avg Commits per committer: 47.6
  • Development Distribution Score (DDS): 0.017
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Don Kackman d****n@g****m 234
Neil Boyd N****d@g****m 1
Joan Bellés j****s@t****m 1
Alexey Sednev a****y@s****m 1
Ace Olszowka a****a@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 2
  • Total pull requests: 26
  • Average time to close issues: 12 days
  • Average time to close pull requests: about 1 month
  • Total issue authors: 2
  • Total pull request authors: 7
  • Average comments per issue: 8.0
  • Average comments per pull request: 0.96
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 15
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • asednev (1)
  • dkackman (1)
Pull Request Authors
  • dependabot[bot] (15)
  • dkackman (7)
  • neilboyd (2)
  • asednev (1)
  • aolszowka (1)
  • teqdruid (1)
  • nosekefik (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
dependencies (15)

Dependencies

.github/workflows/dotnet.yml actions
  • actions/checkout v4 composite
  • actions/setup-dotnet v4 composite
src/LinqStatistics/LinqStatistics.csproj nuget
src/LinqStatisticsTests/LinqStatisticsTests.csproj nuget
  • coverlet.collector 6.0.2 development
  • MSTest.TestAdapter 3.2.2
  • MSTest.TestFramework 3.2.2
  • Microsoft.NET.Test.Sdk 17.9.0