[−][src]Struct wilders_rs::Wilders
Wilders Smoothing
use ta_common::traits::Indicator; use wilders_rs::Wilders; let mut wilders = Wilders::new(5); assert_eq!(wilders.next(81.59), None); assert_eq!(wilders.next(81.06), None); assert_eq!(wilders.next(82.87), None); assert_eq!(wilders.next(83.00), None); assert_eq!(wilders.next(83.61), Some(82.426)); assert_eq!(wilders.next(83.15), Some(82.5708)); assert_eq!(wilders.next(82.84), Some(82.62464)); assert_eq!(wilders.next(83.99), Some(82.897712)); assert_eq!(wilders.next(84.55), Some(83.2281696)); assert_eq!(wilders.next(84.36), Some(83.45453568)); assert_eq!(wilders.next(85.53), Some(83.86962854400001)); assert_eq!(wilders.next(86.54), Some(84.40370283520001)); assert_eq!(wilders.next(86.89), Some(84.90096226816)); assert_eq!(wilders.next(87.77), Some(85.474769814528)); assert_eq!(wilders.next(87.29), Some(85.83781585162241));
Implementations
impl Wilders
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Wilders
impl Send for Wilders
impl Sync for Wilders
impl Unpin for Wilders
impl UnwindSafe for Wilders
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,