ToolUp.AlgorithmProviders.MathNet 0.21.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package ToolUp.AlgorithmProviders.MathNet --version 0.21.0
                    
NuGet\Install-Package ToolUp.AlgorithmProviders.MathNet -Version 0.21.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="ToolUp.AlgorithmProviders.MathNet" Version="0.21.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToolUp.AlgorithmProviders.MathNet" Version="0.21.0" />
                    
Directory.Packages.props
<PackageReference Include="ToolUp.AlgorithmProviders.MathNet" />
                    
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 ToolUp.AlgorithmProviders.MathNet --version 0.21.0
                    
#r "nuget: ToolUp.AlgorithmProviders.MathNet, 0.21.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 ToolUp.AlgorithmProviders.MathNet@0.21.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=ToolUp.AlgorithmProviders.MathNet&version=0.21.0
                    
Install as a Cake Addin
#tool nuget:?package=ToolUp.AlgorithmProviders.MathNet&version=0.21.0
                    
Install as a Cake Tool

ToolUp.AlgorithmProviders.MathNet

Math.NET Numerics implementation of the ToolUp.Algorithms provider seam. Server-tier only; the vendor dependency stops at this package and never reaches ToolUp.Algorithms.Core or ToolUp.Algorithms.Server.

Implements all four curated fitters — IRegressionFitter, IDescriptiveStats, IDistributionFitter, ITimeSeriesFilter — and declares the four canonical algorithm ids: regression.linear, stats.describe, distribution.fit, timeseries.smooth.

Composing it

open ToolUp.Platform
open ToolUp.Algorithms
open ToolUp.AlgorithmProviders

ServerApp.empty
|> ServerApp.withConfig config
|> AlgorithmsCompose.withAlgorithms MathNetAlgorithms.withMathNetAlgorithmProvider
|> ServerApp.run

MathNetAlgorithms.withMathNetAlgorithms is the one-call form for a deployment whose algorithms come entirely from this provider. Alongside other providers, chain the registrations in a single withAlgorithms call — registration is append-only and a second claim on any id fails at compose time rather than being resolved by registration order.

What the wrapper is actually for

The interfaces this package implements were selected by a measurement pass, not by intuition. Math.NET computes correct numbers nearly everywhere it has a surface at all; what it does not do is state which convention it used. This provider's job is to make those choices explicit, honour them, and echo them back:

Convention What this provider does
Quantile definition QuantileCustom with an explicit QuantileDefinition — R-7 for excelCompatible, R-8 for medianUnbiased. Never the bare Quantile / Percentile, both of which default to R-8 under names that read as spreadsheet-compatible.
Smoothing alignment trailingMean is the library's MovingAverage; centredMean is that series re-indexed with explicit null padding at both ends. The alignment is derived from the requested kind and echoed.
Estimation method The estimators are this package's own closed forms. maximumLikelihood and methodOfMoments genuinely differ for the normal and log-normal families; gamma and negative-binomial are moment-only and refuse a maximum-likelihood request rather than substituting.
Categorical reference levels Raw labels arrive, dummy coding happens here, and the level that became each factor's contrast base comes back on the result. With no intercept there is no base, so every level gets its own indicator and the reference list is empty.

Each algorithm's PrecisionContract states the estimator variants, the parameterisations, the degenerate-case behaviour, and the Math.NET release the bindings were written against. Read it before comparing a number against another tool.

Parameterisations

Distribution parameters are reported by name; the family conventions are:

Family Parameters Estimators
normal mu, sigma MLE (n denominator), method of moments (n − 1)
logNormal mu, sigmalog scale MLE on log x; method of moments on the raw-scale moments
poisson lambda MLE and method of moments coincide (the mean is the only moment)
gamma shape, raterate, not scale method of moments only
negativeBinomial r, pp is the success probability, mean r(1 − p)/p method of moments only; requires overdispersion

Licensed under Apache-2.0. Math.NET Numerics is MIT-licensed and is credited in the repository NOTICE.md.

Part of the ToolUp Platform SDK — see github.com/ToolUp-Forge/toolup-forge for full documentation.

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.22.0 36 8/27/2026
0.21.0 41 8/26/2026
0.20.1 82 8/20/2026
0.20.0 109 8/19/2026