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

Ideal resistor. Absorbs its incident wave (b = 0). More...

#include <WDF.h>

Public Member Functions

 Resistor (T resistanceOhms) noexcept
 
void setResistance (T ohms) noexcept
 
void prepare (double) noexcept
 
void updatePorts () noexcept
 
void reset () noexcept
 
double portResistance () const noexcept
 
reflected () noexcept
 
void incident (T a) noexcept
 
getVoltage () const noexcept
 Voltage across the resistor (valid after the root scattered).
 
getCurrent () const noexcept
 Current through the resistor.
 

Detailed Description

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

Ideal resistor. Absorbs its incident wave (b = 0).

Definition at line 82 of file WDF.h.

Constructor & Destructor Documentation

◆ Resistor()

template<FloatType T>
dspark::wdf::Resistor< T >::Resistor ( resistanceOhms)
inlineexplicitnoexcept

Definition at line 85 of file WDF.h.

Member Function Documentation

◆ getCurrent()

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

Current through the resistor.

Definition at line 100 of file WDF.h.

◆ getVoltage()

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

Voltage across the resistor (valid after the root scattered).

Definition at line 98 of file WDF.h.

◆ incident()

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

Definition at line 95 of file WDF.h.

◆ portResistance()

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

Definition at line 93 of file WDF.h.

◆ prepare()

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

Definition at line 89 of file WDF.h.

◆ reflected()

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

Definition at line 94 of file WDF.h.

◆ reset()

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

Definition at line 91 of file WDF.h.

◆ setResistance()

template<FloatType T>
void dspark::wdf::Resistor< T >::setResistance ( ohms)
inlinenoexcept

Definition at line 87 of file WDF.h.

◆ updatePorts()

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

Definition at line 90 of file WDF.h.


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