RobustFit.Core
1.0.0
dotnet add package RobustFit.Core --version 1.0.0
NuGet\Install-Package RobustFit.Core -Version 1.0.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="RobustFit.Core" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RobustFit.Core" Version="1.0.0" />
<PackageReference Include="RobustFit.Core" />
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 RobustFit.Core --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RobustFit.Core, 1.0.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 RobustFit.Core@1.0.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=RobustFit.Core&version=1.0.0
#tool nuget:?package=RobustFit.Core&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RobustFit.Core
A lightweight .NET library for robust regression analysis, designed to provide reliable estimates in the presence of outliers and anomalies in datasets.
Features
- OLS Regression: Standard ordinary least squares implementation
- Robust Regression: IRLS (Iteratively Reweighted Least Squares) implementation
- Multiple Loss Functions:
- Huber loss - balanced approach with tunable sensitivity to outliers
- Tukey (bisquare) loss - complete outlier resistance for extreme cases
- Custom loss function support via
ILossFunction
interface
- Simple API: Consistent interfaces for all models
- Comprehensive Linear Algebra: Matrix operations, residuals calculation, and more
- Performance Optimized: Efficient implementation for .NET applications
Installation
Install-Package RobustFit.Core
Or with .NET CLI:
dotnet add package RobustFit.Core
Quick Start
Ordinary Least Squares (OLS)
using RobustFit.Core.Models;
// Create and fit OLS model
var ols = new OLSRegressor();
ols.Fit(X, y);
// Make predictions
double prediction = ols.Predict(newDataPoint);
Robust Regression with Huber Loss
using RobustFit.Core.Models;
using RobustFit.Core.LossFunctions;
// Create loss function with tuning parameter
var huberLoss = new HuberLoss(c: 1.345);
// Create and fit robust model
var robust = new RobustRegressor();
robust.Fit(X, y, huberLoss, maxIter: 100, tol: 1e-6);
// Make predictions
double robustPrediction = robust.Predict(newDataPoint);
Documentation and Source Code
- Full documentation and examples: GitHub Wiki
- Source code: GitHub Repository
- Sample application: See the demo project in the GitHub repository
When to Use
- When your dataset contains outliers or anomalies
- When you need regression models that are resistant to extreme values
- When standard OLS regression produces poor results due to influential points
License
This package is licensed under the MIT License.
Author
Tomasz Janus, University of Manchester
RobustFit.Core is part of the RobustFit project, a suite of statistical tools for robust data analysis in .NET.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. net10.0 was computed. 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.
-
net8.0
- No dependencies.
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 |
---|---|---|
1.0.0 | 92 | 9/27/2025 |