#[derive(Clone)]
pub struct Delta {
  z: f32,
}

impl Delta {
  pub fn new() -> Self {
    Self { z: 0. }
  }
  pub fn run(&mut self, input: f32) -> f32 {
    let output = input - self.z;
    self.z = input;
    output
  }
}
