class
SushiDSP::WdfCapacitor
A linear capacitor one-port, discretized via the bilinear transform.
- Declared in
include/SushiDSP/math/Wdf.hpp
Public member functions
WdfCapacitor(double sample_rate, float capacitance_farads)Parameters
sample_rateThe sample rate in Hz.
capacitance_faradsThe capacitance in farads.
float port_resistance() constThe port resistance R = T / (2C), where T is the sample period.
Returns
The port resistance in ohms.
float reflect(float incident_wave)Computes the reflected wave: b[n] = a[n-1] (the bilinear-transform result).
Parameters
incident_waveThe incident wave a[n].
Returns
The reflected wave b[n] = the previous call's incident wave.
void reset()Clears the stored previous incident wave.

