[][src]Struct wilders_rs::Wilders

pub struct Wilders { /* fields omitted */ }

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.6628));
assert_eq!(wilders.next(83.15), Some(82.76024));
assert_eq!(wilders.next(82.84), Some(82.776192));
assert_eq!(wilders.next(83.99), Some(83.0189536));
assert_eq!(wilders.next(84.55), Some(83.32516288000001));
assert_eq!(wilders.next(84.36), Some(83.532130304));
assert_eq!(wilders.next(85.53), Some(83.93170424320002));
assert_eq!(wilders.next(86.54), Some(84.45336339456001));
assert_eq!(wilders.next(86.89), Some(84.940690715648));
assert_eq!(wilders.next(87.77), Some(85.5065525725184));
assert_eq!(wilders.next(87.29), Some(85.86324205801472));


impl Wilders[src]

pub fn new(period: u32) -> Wilders[src]

Trait Implementations

impl Indicator<f64, Option<f64>> for Wilders[src]

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.