mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
ParabolaKernel
mir
interpolate
utility
Quadratic function structure
struct
ParabolaKernel
(T)
struct
ParabolaKernel (
T
) {
T
a
;
T
b
;
T
c
;
this
(T a, T b, T c);
this
(T x0, T x1, T x2, T y0, T y1, T y2);
static
ParabolaKernel
fromFirstDerivative
(T x0, T x1, T y0, T y1, T d1);
auto
opCall
(T x);
alias
withDerivative
=
opCall
!
1
;
alias
withTwoDerivatives
=
opCall
!
2
;
}
ParabolaKernel
!(
Unqual
!(
typeof
(
X
.
init
-
Y
.
init
)))
parabolaKernel
(X x0, X x1, X x2, Y y0, Y y1, Y y2)
Constructors
this
this
(T a, T b, T c)
this
this
(T x0, T x1, T x2, T y0, T y1, T y2)
Builds parabola given three points
Members
Aliases
withDerivative
alias
withDerivative
=
opCall
!
1
withTwoDerivatives
alias
withTwoDerivatives
=
opCall
!
2
Functions
opCall
auto
opCall
(T x)
Static functions
fromFirstDerivative
ParabolaKernel
fromFirstDerivative
(T x0, T x1, T y0, T y1, T d1)
Variables
a
T
a
;
b
T
b
;
c
T
c
;
Meta
Source
See Implementation
mir
interpolate
utility
functions
parabolaDerivatives
parabolaKernel
pchipTail
structs
CubicKernel
ParabolaKernel
Quadratic function structure