[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-04-04 20:11:49 +00:00
parent 81c115825b
commit 76b4dfb500
2 changed files with 2 additions and 2 deletions

View File

@ -235,4 +235,4 @@ Filters comparison table
|:data:`Resampling.MKS2013` | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐ |
+---------------------------+-------------+-----------+-------------+
|:data:`Resampling.MKS2021` | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐ |
+---------------------------+-------------+-----------+-------------+
+---------------------------+-------------+-----------+-------------+

View File

@ -87,7 +87,7 @@ mks_2013_filter(double x) {
if (x < 0.5)
return 17.0 / 16.0 - 7.0 / 4.0 * pow(x, 2.0);
if (x < 1.5)
return (1.0 - x) * (7.0/4.0 - x);
return (1.0 - x) * (7.0 / 4.0 - x);
if (x < 2.5)
return -1.0 / 8.0 * pow(x - 5.0 / 2.0, 2.0);
return (0.0);