DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount > Class Template Reference

#include <ContinuousClip.h>

Public Member Functions

std::vector< double > linearKernel () const
 
 Interval (double ceiling)
 
void setCeiling (double ceiling)
 
double reconstructionBound () const noexcept
 
Moments polynomial (const Poly &power) const noexcept
 Integrates an already reconstructed power polynomial on [0,1]. Returns integral(t^j * shape(p(t)), dt), j = 0 .. MomentCount-1, subtracting the linear reference when SubtractLinear is enabled. Shares knee isolation and quadrature with the sample interpolator. Nonfinite coefficients or failed convergence produce NaN.
 
Moments operator() (const std::array< double, count > &samples) const noexcept
 

Detailed Description

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
class dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >

Definition at line 64 of file ContinuousClip.h.

Constructor & Destructor Documentation

◆ Interval()

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >::Interval ( double  ceiling)
inlineexplicit

Definition at line 366 of file ContinuousClip.h.

Member Function Documentation

◆ linearKernel()

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
std::vector< double > dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >::linearKernel ( ) const
inline

Definition at line 348 of file ContinuousClip.h.

◆ operator()()

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
Moments dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >::operator() ( const std::array< double, count > &  samples) const
inlinenoexcept

Definition at line 466 of file ContinuousClip.h.

◆ polynomial()

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
Moments dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >::polynomial ( const Poly &  power) const
inlinenoexcept

Integrates an already reconstructed power polynomial on [0,1]. Returns integral(t^j * shape(p(t)), dt), j = 0 .. MomentCount-1, subtracting the linear reference when SubtractLinear is enabled. Shares knee isolation and quadrature with the sample interpolator. Nonfinite coefficients or failed convergence produce NaN.

Definition at line 453 of file ContinuousClip.h.

◆ reconstructionBound()

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
double dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >::reconstructionBound ( ) const
inlinenoexcept

Definition at line 443 of file ContinuousClip.h.

◆ setCeiling()

template<Curve C, int Degree, bool NativeSlope = false, bool SubtractLinear = true, int MomentCount = 4>
void dspark::detail::continuous_clip::Interval< C, Degree, NativeSlope, SubtractLinear, MomentCount >::setCeiling ( double  ceiling)
inline

Definition at line 417 of file ContinuousClip.h.


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