pub struct DirectForm1Dither {
pub xy: DirectForm1<i32>,
pub e: u32,
}Expand description
SOS state with first order error feedback
Fields§
§xy: DirectForm1<i32>X,Y state
{ x: [x0, x1], y: [[y0, y1]] }
e: u32Error feedback
Trait Implementations§
Source§impl Clone for DirectForm1Dither
impl Clone for DirectForm1Dither
Source§fn clone(&self) -> DirectForm1Dither
fn clone(&self) -> DirectForm1Dither
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectForm1Dither
impl Debug for DirectForm1Dither
Source§impl Default for DirectForm1Dither
impl Default for DirectForm1Dither
Source§fn default() -> DirectForm1Dither
fn default() -> DirectForm1Dither
Returns the “default value” for a type. Read more
Source§impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for Biquad<Q<i32, i64, F>>
let mut state = DirectForm1Dither {
xy: DirectForm {
x: [1, 2],
y: [[3, 4]],
},
e: 5,
};
let x0 = 6;
let y0 = Biquad::<Q32<30>>::IDENTITY.process(&mut state, x0);
assert_eq!(y0, x0);
assert_eq!(state.xy.x, [x0, 1]);
assert_eq!(state.xy.y, [[y0, 3]]);
assert_eq!(state.e, 5);
impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for Biquad<Q<i32, i64, F>>
let mut state = DirectForm1Dither {
xy: DirectForm {
x: [1, 2],
y: [[3, 4]],
},
e: 5,
};
let x0 = 6;
let y0 = Biquad::<Q32<30>>::IDENTITY.process(&mut state, x0);
assert_eq!(y0, x0);
assert_eq!(state.xy.x, [x0, 1]);
assert_eq!(state.xy.y, [[y0, 3]]);
assert_eq!(state.e, 5);Source§impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for BiquadClamp<Q<i32, i64, F>, i32>
impl<const F: i8> SplitProcess<i32, i32, DirectForm1Dither> for BiquadClamp<Q<i32, i64, F>, i32>
Auto Trait Implementations§
impl Freeze for DirectForm1Dither
impl RefUnwindSafe for DirectForm1Dither
impl Send for DirectForm1Dither
impl Sync for DirectForm1Dither
impl Unpin for DirectForm1Dither
impl UnwindSafe for DirectForm1Dither
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more