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

Inductor, bilinear discretization: b[n] = -a[n-1], Rp = 2 fs L. More...

#include <WDF.h>

Public Member Functions

 Inductor (T henries) noexcept
 
void setInductance (T henries) 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::Inductor< T >

Inductor, bilinear discretization: b[n] = -a[n-1], Rp = 2 fs L.

Definition at line 143 of file WDF.h.

Constructor & Destructor Documentation

◆ Inductor()

template<FloatType T>
dspark::wdf::Inductor< T >::Inductor ( henries)
inlineexplicitnoexcept

Definition at line 146 of file WDF.h.

Member Function Documentation

◆ getCurrent()

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

Definition at line 159 of file WDF.h.

◆ getVoltage()

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

Definition at line 158 of file WDF.h.

◆ incident()

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

Definition at line 156 of file WDF.h.

◆ portResistance()

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

Definition at line 154 of file WDF.h.

◆ prepare()

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

Definition at line 150 of file WDF.h.

◆ reflected()

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

Definition at line 155 of file WDF.h.

◆ reset()

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

Definition at line 152 of file WDF.h.

◆ setInductance()

template<FloatType T>
void dspark::wdf::Inductor< T >::setInductance ( henries)
inlinenoexcept

Definition at line 148 of file WDF.h.

◆ updatePorts()

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

Definition at line 151 of file WDF.h.


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