public void setCapacitance(double cap) { this.capacitance = cap; this.timeConstant = cap * this.resistance; this.calcPolesZerosS(); super.sDenom = ComplexPoly.rootsToPoly(this.sPoles); super.addDeadTimeExtras(); this.setC = true; }
// Constructor // Sets time constant to unity and the order to unity public LowPassPassive() { super("Passive Low Pass Filter"); super.setSnumer(new ComplexPoly(1.0D)); super.setSdenom(new ComplexPoly(1.0D, 1.0D)); super.setZtransformMethod(1); super.addDeadTimeExtras(); this.timeConstant = 1.0D; }
public void setTimeConstant(double tau) { this.timeConstant = tau; this.calcPolesZerosS(); super.sDenom = ComplexPoly.rootsToPoly(this.sPoles); super.addDeadTimeExtras(); }