DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
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
 
T getResistance () const noexcept
 Current resistance in ohms.
 
void prepare (double) noexcept
 
void updatePorts () noexcept
 
void reset () noexcept
 
double portResistance () const noexcept
 
T reflected () noexcept
 
void incident (T a) noexcept
 
T getVoltage () const noexcept
 Voltage across the resistor (valid after the root scattered).
 
T 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 ( T  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 103 of file WDF.h.

◆ getResistance()

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

Current resistance in ohms.

Definition at line 90 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 101 of file WDF.h.

◆ incident()

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

Definition at line 98 of file WDF.h.

◆ portResistance()

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

Definition at line 96 of file WDF.h.

◆ prepare()

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

Definition at line 92 of file WDF.h.

◆ reflected()

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

Definition at line 97 of file WDF.h.

◆ reset()

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

Definition at line 94 of file WDF.h.

◆ setResistance()

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

Definition at line 87 of file WDF.h.

◆ updatePorts()

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

Definition at line 93 of file WDF.h.


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