DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
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
 
T reflected () noexcept
 
void incident (T a) noexcept
 
T getVoltage () const noexcept
 
T 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 159 of file WDF.h.

Constructor & Destructor Documentation

◆ Inductor()

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

Definition at line 162 of file WDF.h.

Member Function Documentation

◆ getCurrent()

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

Definition at line 175 of file WDF.h.

◆ getVoltage()

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

Definition at line 174 of file WDF.h.

◆ incident()

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

Definition at line 172 of file WDF.h.

◆ portResistance()

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

Definition at line 170 of file WDF.h.

◆ prepare()

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

Definition at line 166 of file WDF.h.

◆ reflected()

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

Definition at line 171 of file WDF.h.

◆ reset()

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

Definition at line 168 of file WDF.h.

◆ setInductance()

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

Definition at line 164 of file WDF.h.

◆ updatePorts()

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

Definition at line 167 of file WDF.h.


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