#include <Adaa.h>
|
| static double | g (double u) noexcept |
| |
| static double | d1 (double u) noexcept |
| |
| static double | d2 (double u) noexcept |
| |
| static double | d3 (double u) noexcept |
| |
| static AdaaPoint | point (double u) noexcept |
| |
| static double | value (double u0, double u1, double u2) noexcept |
| |
| static bool | exact (const AdaaPoint &p0, const AdaaPoint &p1, const AdaaPoint &p2, double &y) noexcept |
| |
| static double | rampAbove (double a, double b, double c, double mean, double tau) noexcept |
| |
| static double | rampBelow (double a, double b, double c, double mean, double tau) noexcept |
| |
Definition at line 94 of file Adaa.h.
◆ d1()
| static double dspark::detail::AdaaHardClip::d1 |
( |
double |
u | ) |
|
|
inlinestaticnoexcept |
◆ d2()
| static double dspark::detail::AdaaHardClip::d2 |
( |
double |
u | ) |
|
|
inlinestaticnoexcept |
◆ d3()
| static double dspark::detail::AdaaHardClip::d3 |
( |
double |
u | ) |
|
|
inlinestaticnoexcept |
◆ exact()
Exact in every case: clamp(t) = t - (t - 1)+ + (-1 - t)+, and the B-spline average of a ramp (t - tau)+ has a closed form with no subtraction of nearly equal terms, so a kink crossed in tiny steps costs no accuracy (the divided-difference formula lost up to five digits there). Three points on one linear piece return before any ramp is evaluated.
Definition at line 128 of file Adaa.h.
◆ g()
| static double dspark::detail::AdaaHardClip::g |
( |
double |
u | ) |
|
|
inlinestaticnoexcept |
◆ point()
| static AdaaPoint dspark::detail::AdaaHardClip::point |
( |
double |
u | ) |
|
|
inlinestaticnoexcept |
◆ rampAbove()
| static double dspark::detail::AdaaHardClip::rampAbove |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c, |
|
|
double |
mean, |
|
|
double |
tau |
|
) |
| |
|
inlinestaticnoexcept |
Average of (t - tau)+ over the linear B-spline with knots a <= b <= c.
Definition at line 144 of file Adaa.h.
◆ rampBelow()
| static double dspark::detail::AdaaHardClip::rampBelow |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c, |
|
|
double |
mean, |
|
|
double |
tau |
|
) |
| |
|
inlinestaticnoexcept |
Average of (tau - t)+ over the same B-spline (mirror of rampAbove).
Definition at line 158 of file Adaa.h.
◆ value()
| static double dspark::detail::AdaaHardClip::value |
( |
double |
u0, |
|
|
double |
u1, |
|
|
double |
u2 |
|
) |
| |
|
inlinestaticnoexcept |
◆ kClosedForm
| constexpr bool dspark::detail::AdaaHardClip::kClosedForm = true |
|
staticconstexpr |
Closed form for every input triple (see exact()), so Adaa2 keeps only the inputs for this curve.
Definition at line 114 of file Adaa.h.
The documentation for this struct was generated from the following file: