chowdsp_wdf  1.0.0
Wave Digital Filters library for chowdsp
Public Member Functions | Public Attributes | List of all members
ResistiveCurrentSourceT< T > Class Template Referencefinal

WDF Current source with parallel resistance. More...

+ Inheritance diagram for ResistiveCurrentSourceT< T >:

Public Member Functions

 ResistiveCurrentSourceT (T value=NumericType< T >(1.0e9))
 Creates a new resistive current source. More...
 
void setResistanceValue (T newR)
 Sets the resistance value of the parallel resistor, in Ohms. More...
 
void calcImpedance () override
 Computes the impedance for a WDF resistive current souce Z_Ir = Z_R. More...
 
void setCurrent (T newI)
 Sets the current of the current source, in Amps. More...
 
void incident (T x) noexcept
 Accepts an incident wave into a WDF resistive current source. More...
 
reflected () noexcept
 Propogates a reflected wave from a WDF resistive current source. More...
 
 ResistiveCurrentSourceT (T value=NumericType< T >(1.0e9))
 Creates a new resistive current source. More...
 
void setResistanceValue (T newR)
 Sets the resistance value of the parallel resistor, in Ohms. More...
 
void calcImpedance () override
 Computes the impedance for a WDF resistive current souce Z_Ir = Z_R. More...
 
void setCurrent (T newI)
 Sets the current of the current source, in Amps. More...
 
void incident (T x) noexcept
 Accepts an incident wave into a WDF resistive current source. More...
 
reflected () noexcept
 Propogates a reflected wave from a WDF resistive current source. More...
 
- Public Member Functions inherited from BaseWDF
virtual ~BaseWDF ()=default
 
void connectToParent (BaseWDF *p)
 
virtual void propagateImpedanceChange ()
 
virtual ~BaseWDF ()=default
 
void connectToParent (BaseWDF *p)
 
virtual void propagateImpedanceChange ()
 

Public Attributes

WDFMembers< T > wdf
 

Additional Inherited Members

- Protected Attributes inherited from BaseWDF
BaseWDFparent = nullptr
 

Detailed Description

template<typename T>
class chowdsp::wdft::ResistiveCurrentSourceT< T >

WDF Current source with parallel resistance.

Constructor & Destructor Documentation

◆ ResistiveCurrentSourceT() [1/2]

ResistiveCurrentSourceT ( value = NumericType<T> (1.0e9))
explicit

Creates a new resistive current source.

Parameters
valueinitial resistance value, in Ohms

References ResistiveCurrentSourceT< T >::calcImpedance().

◆ ResistiveCurrentSourceT() [2/2]

ResistiveCurrentSourceT ( value = NumericType<T> (1.0e9))
explicit

Creates a new resistive current source.

Parameters
valueinitial resistance value, in Ohms

References ResistiveCurrentSourceT< T >::calcImpedance().

Member Function Documentation

◆ setResistanceValue() [1/2]

void setResistanceValue ( newR)

Sets the resistance value of the parallel resistor, in Ohms.

References BaseWDF::propagateImpedanceChange().

◆ calcImpedance() [1/2]

void calcImpedance ( )
overridevirtual

Computes the impedance for a WDF resistive current souce Z_Ir = Z_R.

Implements BaseWDF.

References ResistiveCurrentSourceT< T >::wdf.

Referenced by ResistiveCurrentSourceT< T >::ResistiveCurrentSourceT().

◆ setCurrent() [1/2]

void setCurrent ( newI)

Sets the current of the current source, in Amps.

◆ incident() [1/2]

void incident ( x)
noexcept

Accepts an incident wave into a WDF resistive current source.

References ResistiveCurrentSourceT< T >::wdf.

◆ reflected() [1/2]

T reflected ( )
noexcept

Propogates a reflected wave from a WDF resistive current source.

References ResistiveCurrentSourceT< T >::wdf.

◆ setResistanceValue() [2/2]

void setResistanceValue ( newR)

Sets the resistance value of the parallel resistor, in Ohms.

References BaseWDF::propagateImpedanceChange().

◆ calcImpedance() [2/2]

void calcImpedance ( )
overridevirtual

Computes the impedance for a WDF resistive current souce Z_Ir = Z_R.

Implements BaseWDF.

References ResistiveCurrentSourceT< T >::wdf.

◆ setCurrent() [2/2]

void setCurrent ( newI)

Sets the current of the current source, in Amps.

◆ incident() [2/2]

void incident ( x)
noexcept

Accepts an incident wave into a WDF resistive current source.

References ResistiveCurrentSourceT< T >::wdf.

◆ reflected() [2/2]

T reflected ( )
noexcept

Propogates a reflected wave from a WDF resistive current source.

References ResistiveCurrentSourceT< T >::wdf.

Member Data Documentation

◆ wdf

WDFMembers< T > wdf

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