mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
be consistend and use one sided difference if outside
This commit is contained in:
parent
7d32acd2bb
commit
e4b687d1f6
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ struct CubicHermiteSpline
|
|||
: k < n ?
|
||||
eval(X, Y, (x - X[k-1]) / (X[k] - X[k-1]), k-1, n)
|
||||
:
|
||||
eval(X, Y, (x - X[n-2]) / (X[n-1] - X[n-2]), n-2, n);
|
||||
eval(X, Y, (x - X[n-2]) / (X[n-1] - X[n-2]), n-1, n);
|
||||
}
|
||||
static constexpr OTYPE left(const OTYPE *Y)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue