UAnalytics 0.28.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package UAnalytics --version 0.28.0
                    
NuGet\Install-Package UAnalytics -Version 0.28.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UAnalytics" Version="0.28.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UAnalytics" Version="0.28.0" />
                    
Directory.Packages.props
<PackageReference Include="UAnalytics" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UAnalytics --version 0.28.0
                    
#r "nuget: UAnalytics, 0.28.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package UAnalytics@0.28.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=UAnalytics&version=0.28.0
                    
Install as a Cake Addin
#tool nuget:?package=UAnalytics&version=0.28.0
                    
Install as a Cake Tool

UAnalytics

.NET bindings for the u-analytics statistical process control and reliability engine.

Features

  • Control charts: X̄-R, X̄-S, I-MR for variables; p, np, c, u and Laney p′ for attributes, with Phase I baselines for Phase II limits
  • Run rules: applied to any series against limits you supply, or to a chart's own
  • Process capability: Cp, Cpk, Pp, Ppk, Cpm, and a percentile method for non-normal data
  • Measurement systems analysis: Gage R&R by the Average & Range method and by ANOVA, each returning the charts the method plots
  • Reliability: Weibull fitting by maximum likelihood (WeibullMle) and median-rank regression (WeibullMrr); WeibullReliability — MTBF, R(t), h(t) and B-lives, with confidence intervals when given an MLE fit (WeibullReliability(fit, …)) or its Covariance
  • Non-normal capability: BoxCoxCapability, and SigmaToPpm / PpmToSigma on the 1.5σ-shift convention
  • Event-time trend: whether one unit's events (failures of a repairable system, incidents) arrive at a changing rate — LaplaceTrendTest, MilHdbk189Test, and the power-law process (Crow-AMSAA) fit PowerLawProcessFit. Pass the end of observation, or null when it stopped at the last event
  • Cumulative counters: CounterIncrements — how much a meter or counter advanced between readings, each step Normal, Declared (a reset or replacement you pass as CounterDiscontinuity), Wrap (through the register's modulus) or Unexplained (no increase guessed) — and CounterTotals over intervals
  • Hypothesis tests: t (one-sample, Welch, paired), Mann-Whitney, Wilcoxon, Jarque-Bera, Shapiro-Wilk, Anderson-Darling, Mann-Kendall, ANOVA, Kruskal-Wallis, Levene, Bartlett, χ² goodness of fit and independence, Fisher's exact; Bonferroni and Benjamini-Hochberg adjustment
  • Stationarity: AdfTest (augmented Dickey-Fuller)
  • Change detection: changepoints in one series or several aligned ones (DetectChangepointsMulti), Cusum and Ewma charts for small sustained shifts, period estimation, spectral residual scoring
  • Correlation and regression: correlation matrices, simple linear regression
  • Distribution fitting: best-fit selection across candidate distributions

Installation

dotnet add package UAnalytics

Usage

using UAnalytics;

using var analytics = new AnalyticsClient();

XbarRChartResult chart = analytics.XbarRChart(
[
    [10.1, 10.3, 9.8],
    [10.0, 10.2, 10.1],
    [9.9,  10.4, 10.2],
]);

Console.WriteLine($"UCL {chart.XbarUcl:F3}, sigma {chart.SigmaHat:F3}, in control: {chart.InControl}");

TrendTestResult trend = analytics.MilHdbk189Test([10, 19, 27, 34, 40, 45, 49, 52, 54, 55], end: null);
if (trend.Direction == TrendDirection.Increasing && trend.PValue < 0.05)
    Console.WriteLine("Failures are coming more often.");

Every method returns a record (XbarRChartResult, CapabilityResult, TrendTestResult, …) whose properties are the engine's result fields. A value the inputs do not define — a short-term index without a within-subgroup sigma, a t ratio of an exact fit — is null on a nullable property. Closed vocabularies are enums: RunRule (the run tests a chart applies and reports), RunRuleSet (the named sets — Shewhart, the default; WesternElectric; Nelson), TrendDirection, SigmaSource, GageStatus, and the options AdfModel, PeltCost and CorrelationMethod.

Input that cannot be analysed is refused rather than approximated: AnalyticsException carries a stable ErrorCode — the error body's code (insufficient_data, parameter_out_of_range, value_not_finite, …), the Parameter it is about, the Index of the offending element, the whole error body in Details and the native status in Status. For parameter_out_of_range, Details holds got, the inclusive bounds min / max (null on a side that is open or unbounded) and, only on an open side, exclusive_min / exclusive_max. Every code and the fields it carries are listed in the crate README — the WebAssembly and .NET bindings refuse with the same codes, and GetCodes() returns them as data — Codes(Refusals, Violations), each refusal with the fields beside it — from the table the engine refuses from.

Trimming and NativeAOT

The client uses no reflection: requests are built as JSON nodes and results are read through source-generated serialization, and the package is marked IsAotCompatible. It runs unchanged in trimmed and NativeAOT applications, and in .NET file-based apps.

Platforms

The package carries the native library for win-x64, linux-x64 and linux-arm64 (glibc 2.39 or later), osx-x64 and osx-arm64; no separate install is needed.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on UAnalytics:

Package Downloads
DataLens

Exploratory data analysis engine for CSV/Excel datasets. Produces JSON analysis results including profiling, descriptive statistics, correlation, regression, clustering, outlier detection, PCA, and feature importance.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.29.0 99 11/10/2026
0.28.0 154 11/8/2026
0.27.0 460 11/2/2026
0.26.0 107 11/2/2026
0.25.0 148 10/28/2026
0.24.1 115 10/28/2026
0.24.0 124 10/27/2026
0.23.0 108 10/27/2026
0.22.2 150 10/20/2026
0.22.1 110 10/20/2026
0.22.0 189 10/16/2026
0.21.0 131 10/16/2026
0.20.0 120 10/15/2026
0.19.0 112 10/15/2026
0.18.0 117 10/15/2026
0.17.0 118 10/14/2026
0.16.0 126 10/13/2026
0.15.0 116 10/13/2026
0.14.0 189 10/7/2026
0.13.0 118 10/7/2026
Loading failed