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.
<PackageVersion Include="TYoshimura.CurveFitting" Version="1.4.1" />
<PackageReference Include="TYoshimura.CurveFitting" />
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 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.
#addin nuget:?package=TYoshimura.CurveFitting&version=1.4.1
#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. 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.
-
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 | 138 | 11/14/2024 |
1.8.0 | 105 | 10/31/2024 |
1.7.4 | 132 | 9/7/2024 |
1.7.3 | 130 | 9/6/2024 |
1.7.2 | 114 | 8/27/2024 |
1.7.1 | 147 | 4/18/2024 |
1.7.0 | 151 | 4/6/2024 |
1.6.5 | 129 | 3/1/2024 |
1.6.4 | 135 | 2/22/2024 |
1.6.3 | 141 | 2/17/2024 |
1.6.1 | 130 | 1/30/2024 |
1.6.0 | 116 | 1/20/2024 |
1.5.0 | 212 | 9/4/2023 |
1.4.4 | 307 | 3/13/2023 |
1.4.3 | 331 | 2/1/2023 |
1.4.2 | 345 | 1/30/2023 |
1.4.1 | 347 | 1/27/2023 |
1.4.0 | 349 | 1/19/2023 |
1.3.0 | 488 | 9/4/2022 |
1.2.0 | 407 | 1/1/2022 |
1.1.1 | 407 | 11/10/2021 |
merge from mp.curvefitting