TYoshimura.CurveFitting
1.4.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TYoshimura.CurveFitting --version 1.4.2
NuGet\Install-Package TYoshimura.CurveFitting -Version 1.4.2
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="TYoshimura.CurveFitting" Version="1.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TYoshimura.CurveFitting --version 1.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TYoshimura.CurveFitting, 1.4.2"
#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.
// Install TYoshimura.CurveFitting as a Cake Addin #addin nuget:?package=TYoshimura.CurveFitting&version=1.4.2 // Install TYoshimura.CurveFitting as a Cake Tool #tool nuget:?package=TYoshimura.CurveFitting&version=1.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CurveFitting
Curvefitting - linear, polynomial, pade, arbitrary function
Requirement
.NET 6.0
Install
- Import Algebra(https://github.com/tk-yoshimura/Algebra)
- Import DoubleDouble(https://github.com/tk-yoshimura/DoubleDouble)
- To install, just import the DLL.
- This library does not change the environment at all.
Usage
ddouble[] xs = (new ddouble[64]).Select((_, i) => (ddouble)i).ToArray();
ddouble[] ys1 = new ddouble[xs.Length], ys2 = new ddouble[xs.Length];
Vector p1 = new(2, -1, 1, 5), p2 = new(1, 4, 3, -1);
for (int i = 0; i < xs.Length; i++) {
ddouble x = xs[i];
ys1[i] = p1[0] + p1[1] * x + p1[2] * x * x + p1[3] * x * x * x;
ys2[i] = p2[0] + p2[1] * x + p2[2] * x * x + p2[3] * x * x * x;
}
ys1[32] = ys2[32] = -64;
RobustPolynomialFitter fitter1 = new(xs, ys1, 3);
RobustPolynomialFitter fitter2 = new(xs, ys2, 3, intercept: 1);
Assert.IsTrue((fitter1.ExecuteFitting() - p1).Norm < 1e-20);
Assert.IsTrue((fitter2.ExecuteFitting() - p2).Norm < 1e-20);
Licence
Author
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- TYoshimura.Algebra (>= 1.4.2)
- TYoshimura.DoubleDouble (>= 2.5.0)
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.8.1 | 77 | 11/14/2024 |
1.8.0 | 75 | 10/31/2024 |
1.7.4 | 107 | 9/7/2024 |
1.7.3 | 103 | 9/6/2024 |
1.7.2 | 97 | 8/27/2024 |
1.7.1 | 127 | 4/18/2024 |
1.7.0 | 134 | 4/6/2024 |
1.6.5 | 114 | 3/1/2024 |
1.6.4 | 112 | 2/22/2024 |
1.6.3 | 112 | 2/17/2024 |
1.6.1 | 113 | 1/30/2024 |
1.6.0 | 104 | 1/20/2024 |
1.5.0 | 184 | 9/4/2023 |
1.4.4 | 277 | 3/13/2023 |
1.4.3 | 287 | 2/1/2023 |
1.4.2 | 311 | 1/30/2023 |
1.4.1 | 310 | 1/27/2023 |
1.4.0 | 316 | 1/19/2023 |
1.3.0 | 450 | 9/4/2022 |
1.2.0 | 352 | 1/1/2022 |
1.1.1 | 349 | 11/10/2021 |
merge from mp.curvefitting