Skip to content

Commit

Permalink
remove iir_int
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Jan 8, 2024
1 parent e2781d0 commit 55e1973
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 338 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

* `hbf` FIRs, symmetric FIRs, half band filters, HBF decimators and interpolators
* `iir::PidBuilder` a builder for PID coefficients
* `iir::Biquad::{hold, proportional, identity}`
* `iir::Pid`, `iir:Filter` a builder for PID coefficients and the collection of standard Biquad filters
* `iir::Biquad::{HOLD, proportional, identity}`
* `iir`: support for other integers (i8, i16, i128)
* `iir::Biquad`: support for reduced DF1 state and DF2T state

### Removed

* `iir::Vec5` type alias has been removed.
* `iir_int`: integrated into `iir`.

### Changed

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ High accuracy, zero-assumption, fully robust, forward and reciprocal PLLs with d

Tools to handle, track, and unwrap phase signals or generate them.

## iir_int, iir
## iir

`i32` and `f32` biquad IIR filters with robust and clean clipping and offset (anti-windup, no derivative kick, dynamically adjustable gains).
Fixed point (`i8`, `i16`, `i32`, `i64`) and floating point (`f32`, `f64`) biquad IIR filters.
Robust and clean clipping and offset (anti-windup, no derivative kick, dynamically adjustable gains) suitable for PID controller applications.
Direct Form 1 and Direct Form 2 Transposed supported.
Coefficient sharing for multiple channels.

## Lowpass, Lockin

Expand Down
4 changes: 2 additions & 2 deletions benches/micro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use core::f32::consts::PI;

use easybench::bench_env;

use idsp::{atan2, cossin, iir, iir_int, Filter, Lowpass, PLL, RPLL};
use idsp::{atan2, cossin, iir, Filter, Lowpass, PLL, RPLL};

fn atan2_bench() {
let xi = (10 << 16) as i32;
Expand Down Expand Up @@ -53,7 +53,7 @@ fn pll_bench() {
}

fn iir_int_bench() {
let dut = iir_int::Biquad::default();
let dut = iir::Biquad::default();
let mut xy = [0; 5];
println!(
"int_iir::IIR::update(s, x): {}",
Expand Down
331 changes: 0 additions & 331 deletions src/iir_int.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub use complex::*;
mod cossin;
pub use cossin::*;
pub mod iir;
pub mod iir_int;
mod lockin;
pub use lockin::*;
mod lowpass;
Expand Down

0 comments on commit 55e1973

Please sign in to comment.