public FirstOrderSystem(float k, float tau, float samplingFreqHz, float initialOutput) { this.k = k; this.tau = tau; this.samplingFreqHz = samplingFreqHz; float T = 1 / this.samplingFreqHz; float denom = 2 * this.tau + T; float inCoeff = this.k * T / denom; float[] inCoeffs = new float[] { inCoeff, inCoeff }; float[] outCoeffs = new float[] { (T - 2 * this.tau) / denom }; discreteSystem = new DiscreteSystem(inCoeffs, outCoeffs, initialOutput); }
public void AssignState(DiscreteSystem other) { eqn.AssignState(other.eqn); }