pub enum SineKernel {
Direct,
Cordic(Cordic32),
Cordic64(Cordic64),
}Expand description
How the sine and cosine of the oscillator phase are evaluated.
Variants§
Direct
The platform’s floating-point sin and cos.
Cordic(Cordic32)
A 32-bit integer Cordic32 rotator fed with the top 32 bits of the oscillator phase
(accurate to about 1e-8).
Cordic64(Cordic64)
A 64-bit integer Cordic64 rotator fed with the oscillator’s full 64-bit phase
(double-precision accuracy at 52 or more iterations).
Implementations§
Trait Implementations§
Source§impl Clone for SineKernel
impl Clone for SineKernel
Auto Trait Implementations§
impl Freeze for SineKernel
impl RefUnwindSafe for SineKernel
impl Send for SineKernel
impl Sync for SineKernel
impl Unpin for SineKernel
impl UnsafeUnpin for SineKernel
impl UnwindSafe for SineKernel
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