Struct frustool::metrics::roc::Roc[][src]

pub struct Roc { /* fields omitted */ }

Implementations

impl Roc[src]

pub fn new(input: Vec<f64>, time_period: i32) -> Result<Self, Error>[src]

pub fn rocp(&self) -> Vec<f64>[src]

ROCP - Rate Of Change in Percent: (price-prevprice)/prevprice

pub fn roc(&self) -> Vec<f64>[src]

ROCP - Rate Of Change: ((price/prevprice) - 1) * 100

pub fn rocr(&self) -> Vec<f64>[src]

ROCr - Rate Of Change ratio: price/prevprice

pub fn rocr100(&self) -> Vec<f64>[src]

ROCr100 - Rate Of Change ratio 100 scale: (price/prevprice) * 100

Auto Trait Implementations

impl RefUnwindSafe for Roc

impl Send for Roc

impl Sync for Roc

impl Unpin for Roc

impl UnwindSafe for Roc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.