[−][src]Trait yata::core::Sequence
Implements some methods for sequence manipulations.
Required methods
pub fn validate(&self) -> bool
[src]
Validates the sequence.
pub fn call<'a, M>(&self, method: M) -> Vec<M::Output> where
M: Method<'a, Input = T> + BorrowMut<M> + 'a,
[src]
M: Method<'a, Input = T> + BorrowMut<M> + 'a,
Calls Method
over the slice and returns Vec
of result values.
Provided methods
pub fn apply<'a, M>(&'a mut self, method: M) where
M: Method<'a, Input = T, Output = T> + BorrowMut<M> + 'a,
Self: AsMut<[T]>,
T: Copy,
[src]
M: Method<'a, Input = T, Output = T> + BorrowMut<M> + 'a,
Self: AsMut<[T]>,
T: Copy,
Applies Method
on the slice in-place.
pub fn get_initial_value(&self) -> Option<&T>
[src]
Returns a reference to the first value in the sequence or None
if it's empty.
pub fn collapse_timeframe(&self, size: usize, continuous: bool) -> Vec<Candle> where
T: OHLCV,
[src]
T: OHLCV,
Converts timeframe of the series
Implementors
impl<Q: AsRef<[ValueType]>> Sequence<f64> for Q
[src]
pub fn validate(&self) -> bool
[src]
pub fn call<'a, M>(&self, method: M) -> Vec<M::Output> where
M: Method<'a, Input = ValueType> + BorrowMut<M> + 'a,
[src]
M: Method<'a, Input = ValueType> + BorrowMut<M> + 'a,