TYoshimura.MultiPrecision.CurveFitting
1.2.0
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.MultiPrecision.CurveFitting --version 1.2.0
NuGet\Install-Package TYoshimura.MultiPrecision.CurveFitting -Version 1.2.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="TYoshimura.MultiPrecision.CurveFitting" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TYoshimura.MultiPrecision.CurveFitting --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TYoshimura.MultiPrecision.CurveFitting, 1.2.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.
// Install TYoshimura.MultiPrecision.CurveFitting as a Cake Addin #addin nuget:?package=TYoshimura.MultiPrecision.CurveFitting&version=1.2.0 // Install TYoshimura.MultiPrecision.CurveFitting as a Cake Tool #tool nuget:?package=TYoshimura.MultiPrecision.CurveFitting&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MultiPrecisionCurveFitting
Float Multi Precision Curve Fitting - linear, polynomial, pade, arbitrary function
Requirement
.NET 6.0
AVX2 suppoted CPU. (Intel:Haswell(2013)-, AMD:Excavator(2015)-)
Install
Download DLL
Download Nuget package
- Import MultiPrecision(https://github.com/tk-yoshimura/MultiPrecision)
- Import MultiPrecisionAlgebra(https://github.com/tk-yoshimura/MultiPrecisionAlgebra)
- To install, just import the DLL.
- This library does not change the environment at all.
Usage
MultiPrecision<Pow2.N8>[] xs = (new MultiPrecision<Pow2.N8>[1024]).Select((_, i) => MultiPrecision<Pow2.N8>.Div(i, 1024)).ToArray();
MultiPrecision<Pow2.N8>[] ys = xs.Select(v => MultiPrecision<Pow2.N8>.Cos(v) - 0.25).ToArray();
PadeFitter<Pow2.N8> fitter = new(xs, ys, intercept: 0.75, numer: 4, denom: 3);
bool callback(Vector<Pow2.N8> parameters) {
MultiPrecision<Pow2.N8> norm = fitter.Error(parameters).Norm;
Console.WriteLine(parameters);
Console.WriteLine(norm);
bool is_continue = norm > 1e-3;
return is_continue;
};
Vector<Pow2.N8> parameters = fitter.ExecuteFitting(iter: 256, iter_callback: callback);
Console.WriteLine($"Numer : {(Vector<Pow2.N8>)((MultiPrecision<Pow2.N8>[])parameters)[..fitter.Numer]}");
Console.WriteLine($"Denom : {(Vector<Pow2.N8>)((MultiPrecision<Pow2.N8>[])parameters)[fitter.Numer..]}");
See also: Tests
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.MultiPrecision (>= 5.1.0)
- TYoshimura.MultiPrecision.Algebra (>= 1.1.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.9.1 | 69 | 11/14/2024 |
1.9.0 | 70 | 11/1/2024 |
1.8.4 | 115 | 9/7/2024 |
1.8.3 | 100 | 9/6/2024 |
1.8.2 | 98 | 8/27/2024 |
1.8.1 | 123 | 4/18/2024 |
1.8.0 | 117 | 4/6/2024 |
1.7.5 | 128 | 3/1/2024 |
1.7.4 | 117 | 2/22/2024 |
1.7.3 | 118 | 2/17/2024 |
1.7.1 | 116 | 1/30/2024 |
1.7.0 | 103 | 1/20/2024 |
1.6.0 | 168 | 9/6/2023 |
1.5.5 | 241 | 3/13/2023 |
1.5.4 | 290 | 2/1/2023 |
1.5.3 | 302 | 1/30/2023 |
1.5.2 | 274 | 1/27/2023 |
1.5.0 | 287 | 1/25/2023 |
1.4.0 | 291 | 1/19/2023 |
1.2.0 | 311 | 1/11/2023 |
1.1.0 | 309 | 1/9/2023 |
1.0.0 | 294 | 1/9/2023 |
+ pade