fslaborg / FSharp.Stats

statistical testing, linear algebra, machine learning, fitting and signal processing in F#
https://fslab.org/FSharp.Stats/
Other
205 stars 54 forks source link

Addition of Bezier interpolation #305

Closed pirrmann closed 9 months ago

pirrmann commented 9 months ago

Fixes #289

Description

This PR adds support for Bezier interpolation between 2 points using multiple control points, using De Casteljau's algorithm.

image

[Required] please make sure you checked that

[Optional]

codecov-commenter commented 9 months ago

Codecov Report

Merging #305 (5ccc8ba) into developer (6014323) will increase coverage by 0.39%. Report is 16 commits behind head on developer. The diff coverage is 90.69%.

@@              Coverage Diff              @@
##           developer     #305      +/-   ##
=============================================
+ Coverage      46.31%   46.71%   +0.39%     
=============================================
  Files            148      148              
  Lines          16049    16206     +157     
  Branches        2176     2191      +15     
=============================================
+ Hits            7433     7570     +137     
- Misses          7968     7984      +16     
- Partials         648      652       +4     
Files Coverage Δ
tests/FSharp.Stats.Tests/Interpolation.fs 100.00% <100.00%> (ø)
src/FSharp.Stats/Interpolation.fs 22.58% <50.00%> (+0.32%) :arrow_up:

... and 4 files with indirect coverage changes

bvenn commented 9 months ago

Great addition, even with docu and tests :+1::+1: