2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-27 19:12:08 +00:00

Demonstrate that matched Holder interpolation does indeed have higher accuracy and that the exponent should be reduced a bit [CI SKIP]

This commit is contained in:
Nick
2020-02-05 10:36:21 -05:00
parent ae13e5b0bc
commit fe5bb27ab8
2 changed files with 25 additions and 144 deletions

View File

@@ -102,7 +102,7 @@ public:
// It's only exactly right at dyadic rationals.
//Real constexpr const alpha = 2 - log(1+sqrt(Real(3)))/log(Real(2));
// So we're gonna make the graph dip a little harder; this will capture more of the self-similar behavior:
Real constexpr const alpha = 0.35;
Real constexpr const alpha = 0.3;
int64_t i = static_cast<int64_t>(std::floor(x/h_));
Real t = (x- i*h_)/h_;
Real v = y_[i];