Skip to content

v1.11.0 — MATLAB-parity C2D/D2C/D2D conversion

Choose a tag to compare

@jamestjsp jamestjsp released this 03 Oct 14:50
· 18 commits to main since this release
df86d39
  • Conversion methods: ZOH, triangle FOH, Tustin with prewarp, matched, impulse and least-squares C2D, with reverse conversion (D2C) and resampling (D2D).
  • Delays: Thiran ThiranOrder is a maximum order min(ceil(D), ThiranOrder) with the integer remainder kept exact. Thiran filters also apply to internal feedback delays. Fractional internal delays are supported under ZOH/FOH. DelayModeling is either delay or state.
  • DiscretizeWithResult/D2CWithResult/D2DWithResult return ConversionResult: initial-state map, Approximate flag and warnings, including delay rounding or Thiran approximation.
  • Behaviour changes: ZOH no longer accepts Thiran. Thiran keeps the whole-sample remainder as a delay. D22 internal feedthrough with positive delays is accepted (matches MATLAB).
  • Evidence matrix in docs/conversion-compatibility.md. Tustin+Thiran is slower than v1.10.0 because it now follows the MATLAB delay split. It went from 2.52µs to 4.09µs; v1.12.0 brings it back to 2.84µs.

Includes PR #180.