TYoshimura.CurveFitting
1.4.1
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.1
NuGet\Install-Package TYoshimura.CurveFitting -Version 1.4.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TYoshimura.CurveFitting --version 1.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TYoshimura.CurveFitting, 1.4.1"
#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.1 // Install TYoshimura.CurveFitting as a Cake Tool #tool nuget:?package=TYoshimura.CurveFitting&version=1.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CurveFitting
Curvefitting - linear, polynomial, 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 | 72 | 11/14/2024 |
1.8.0 | 73 | 10/31/2024 |
1.7.4 | 105 | 9/7/2024 |
1.7.3 | 101 | 9/6/2024 |
1.7.2 | 95 | 8/27/2024 |
1.7.1 | 125 | 4/18/2024 |
1.7.0 | 132 | 4/6/2024 |
1.6.5 | 112 | 3/1/2024 |
1.6.4 | 110 | 2/22/2024 |
1.6.3 | 110 | 2/17/2024 |
1.6.1 | 111 | 1/30/2024 |
1.6.0 | 102 | 1/20/2024 |
1.5.0 | 182 | 9/4/2023 |
1.4.4 | 275 | 3/13/2023 |
1.4.3 | 285 | 2/1/2023 |
1.4.2 | 309 | 1/30/2023 |
1.4.1 | 308 | 1/27/2023 |
1.4.0 | 314 | 1/19/2023 |
1.3.0 | 448 | 9/4/2022 |
1.2.0 | 350 | 1/1/2022 |
1.1.1 | 347 | 11/10/2021 |
merge from mp.curvefitting