DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::wdf::Capacitor< T > Class Template Reference

Capacitor, bilinear discretization: b[n] = a[n-1], Rp = 1/(2 fs C). More...

#include <WDF.h>

Public Member Functions

 Capacitor (T farads) noexcept
 
void setCapacitance (T farads) noexcept
 
void prepare (double sampleRate) noexcept
 
void updatePorts () noexcept
 
void reset () noexcept
 
double portResistance () const noexcept
 
reflected () noexcept
 
void incident (T a) noexcept
 
getVoltage () const noexcept
 
getCurrent () const noexcept
 

Detailed Description

template<FloatType T>
class dspark::wdf::Capacitor< T >

Capacitor, bilinear discretization: b[n] = a[n-1], Rp = 1/(2 fs C).

Definition at line 113 of file WDF.h.

Constructor & Destructor Documentation

◆ Capacitor()

template<FloatType T>
dspark::wdf::Capacitor< T >::Capacitor ( farads)
inlineexplicitnoexcept

Definition at line 116 of file WDF.h.

Member Function Documentation

◆ getCurrent()

template<FloatType T>
T dspark::wdf::Capacitor< T >::getCurrent ( ) const
inlinenoexcept

Definition at line 129 of file WDF.h.

◆ getVoltage()

template<FloatType T>
T dspark::wdf::Capacitor< T >::getVoltage ( ) const
inlinenoexcept

Definition at line 128 of file WDF.h.

◆ incident()

template<FloatType T>
void dspark::wdf::Capacitor< T >::incident ( a)
inlinenoexcept

Definition at line 126 of file WDF.h.

◆ portResistance()

template<FloatType T>
double dspark::wdf::Capacitor< T >::portResistance ( ) const
inlinenoexcept

Definition at line 124 of file WDF.h.

◆ prepare()

template<FloatType T>
void dspark::wdf::Capacitor< T >::prepare ( double  sampleRate)
inlinenoexcept

Definition at line 120 of file WDF.h.

◆ reflected()

template<FloatType T>
T dspark::wdf::Capacitor< T >::reflected ( )
inlinenoexcept

Definition at line 125 of file WDF.h.

◆ reset()

template<FloatType T>
void dspark::wdf::Capacitor< T >::reset ( )
inlinenoexcept

Definition at line 122 of file WDF.h.

◆ setCapacitance()

template<FloatType T>
void dspark::wdf::Capacitor< T >::setCapacitance ( farads)
inlinenoexcept

Definition at line 118 of file WDF.h.

◆ updatePorts()

template<FloatType T>
void dspark::wdf::Capacitor< T >::updatePorts ( )
inlinenoexcept

Definition at line 121 of file WDF.h.


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