DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::AdaaTanh Struct Reference

#include <Adaa.h>

Classes

struct  Remainder
 

Static Public Member Functions

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 double tail (double a) noexcept
 
static AdaaPoint point (double u) noexcept
 
static bool exact (const AdaaPoint &p0, const AdaaPoint &p1, const AdaaPoint &p2, double &y) noexcept
 

Static Public Attributes

static constexpr double kOuter = 2.0
 

Detailed Description

Definition at line 175 of file Adaa.h.

Member Function Documentation

◆ d1()

static double dspark::detail::AdaaTanh::d1 ( double  u)
inlinestaticnoexcept

Definition at line 182 of file Adaa.h.

◆ d2()

static double dspark::detail::AdaaTanh::d2 ( double  u)
inlinestaticnoexcept

Definition at line 183 of file Adaa.h.

◆ d3()

static double dspark::detail::AdaaTanh::d3 ( double  u)
inlinestaticnoexcept

Definition at line 184 of file Adaa.h.

◆ exact()

static bool dspark::detail::AdaaTanh::exact ( const AdaaPoint &  p0,
const AdaaPoint &  p1,
const AdaaPoint &  p2,
double &  y 
)
inlinestaticnoexcept

Definition at line 228 of file Adaa.h.

◆ g()

static double dspark::detail::AdaaTanh::g ( double  u)
inlinestaticnoexcept

Definition at line 181 of file Adaa.h.

◆ point()

static AdaaPoint dspark::detail::AdaaTanh::point ( double  u)
inlinestaticnoexcept

Definition at line 219 of file Adaa.h.

◆ tail()

static double dspark::detail::AdaaTanh::tail ( double  a)
inlinestaticnoexcept

integralLogCoshTail for a >= 1, with the series cut to the terms that matter at the argument (z = e^{-2a} <= e^{-4} needs nine).

Definition at line 208 of file Adaa.h.

Member Data Documentation

◆ kOuter

constexpr double dspark::detail::AdaaTanh::kOuter = 2.0
staticconstexpr

Beyond |u| = 2, F2 = sign (u^2/2 - |u| ln 2 + pi^2/24) + R with |R| < 0.01: the quadratic part has an exact second difference.

Definition at line 179 of file Adaa.h.


The documentation for this struct was generated from the following file: