FTI.Statistics
1.0.1
dotnet add package FTI.Statistics --version 1.0.1
NuGet\Install-Package FTI.Statistics -Version 1.0.1
<PackageReference Include="FTI.Statistics" Version="1.0.1" />
paket add FTI.Statistics --version 1.0.1
#r "nuget: FTI.Statistics, 1.0.1"
// Install FTI.Statistics as a Cake Addin #addin nuget:?package=FTI.Statistics&version=1.0.1 // Install FTI.Statistics as a Cake Tool #tool nuget:?package=FTI.Statistics&version=1.0.1
FTI.Statistics
FTI.Statistics is a comprehensive library offering a variety of statistical functions to help you perform complex statistical analyses with ease. This library includes functions for calculating basic statistics, measures of spread, advanced statistical measures, combinatorial functions, and special functions.
Features
• Basic Descriptive Statistics
Median: Calculate the median of a data set.
Mode: Find the most frequently occurring value in a data set.
Range: Determine the difference between the maximum and minimum values.
CountEach: Count the occurrences of each value in a data set.
• Measures of Spread and Variability
Standard Deviation: Compute the standard deviation for sample and population data sets.
Variance: Calculate the variance for sample and population data sets.
Root Mean Square (RMS): Calculate the square root of the average of the squares of a set of values.
• Advanced Statistical Measures
Covariance: Measure the joint variability of two random variables.
Pearson's Correlation Coefficient: Determine the linear relationship two variables.
• Data Representation
Histogram: Create a histogram by counting the frequency of each value and grouping them into bins.
• Statistical Methods
Least Squares Linear Regression: Find the best-fitting straight line through a set of points.
• Combinatorial Functions
Binomial Coefficient: Calculate the number of ways to choose 𝑘 items from 𝑛 items without regard to order.
Multinomial Coefficient: Generalize the binomial coefficient to partition a set of 𝑛 items into 𝑟 groups.
• Special Functions
Beta Function: Evaluate the beta function for given parameters.
Digamma Function: Compute the logarithmic derivative of the gamma function.
Polygamma Function: Calculate the (n+1)th derivative of the logarithm of the gamma function.
Riemann Zeta Function: Evaluate the Riemann zeta function for a given value.
Installation
To install the FTI.Statistics NuGet package, use the following command:
dotnet add package FTI.Statistics
Usage
Example Code
using System;
using FTI.Statistics;
class Program
{
static void Main(string[] args)
{
var data = new List<double> {1, 2, 2, 3, 3, 3, 4, 4, 4, 4};
// Calculate the range
double range = Stats.Range(data);
Console.WriteLine($"Range: {range}");
// Calculate the root mean square
double rms = Stats.RootMeanSquare(data);
Console.WriteLine($"Root Mean Square: {rms}");
// Calculate Pearson's correlation coefficient
var x = new List<double> {1, 2, 3, 4, 5};
var y = new List<double> {2, 3, 5, 7, 11};
double correlation = Stats.PearsonCorrelation(x, y);
Console.WriteLine($"Pearson's Correlation Coefficient: {correlation}");
// Create a histogram
var histogram = Stats.Histogram(data, 5);
foreach (var bin in histogram)
{
Console.WriteLine($"Range: {bin.Key}, Count: {bin.Value}");
}
}
}
Package Version
- Initial Version: 1.0.0
Upcoming version will be updated and documentation will come, stay tuned!
Feel free to contact.
Happy Coding!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.1)
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
-
net7.0
- Newtonsoft.Json (>= 13.0.1)
-
net8.0
- Newtonsoft.Json (>= 13.0.1)
-
net9.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of the Statistics library.
- Added funtions for descriptive statistics functions.
- Includes support for .NET Core 3.1 (Standard framework) .NET 6.0, .NET 7.0, .NET 8.0, and .NET 9.0.
- Added dependency on Newtonsoft.Json version 13.0.1.
- Use of primary constructor in exception modules, that enhance performance during build your development.
- Comprehensive documentation and examples included in the README.md file.
- __Initial Version__: 1.0.0
- __Updated Version__: 1.0.1 (Documentation updated to help you how to use the package)