pub struct YangZhangVolatilityInput<'a> {
pub data: YangZhangVolatilityData<'a>,
pub params: YangZhangVolatilityParams,
}Fields§
§data: YangZhangVolatilityData<'a>§params: YangZhangVolatilityParamsImplementations§
Source§impl<'a> YangZhangVolatilityInput<'a>
impl<'a> YangZhangVolatilityInput<'a>
pub fn from_candles( candles: &'a Candles, params: YangZhangVolatilityParams, ) -> Self
pub fn from_slices( open: &'a [f64], high: &'a [f64], low: &'a [f64], close: &'a [f64], params: YangZhangVolatilityParams, ) -> Self
pub fn with_default_candles(candles: &'a Candles) -> Self
pub fn get_lookback(&self) -> usize
pub fn get_k_override(&self) -> bool
pub fn get_k(&self) -> f64
Trait Implementations§
Source§impl<'a> Clone for YangZhangVolatilityInput<'a>
impl<'a> Clone for YangZhangVolatilityInput<'a>
Source§fn clone(&self) -> YangZhangVolatilityInput<'a>
fn clone(&self) -> YangZhangVolatilityInput<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for YangZhangVolatilityInput<'a>
impl<'a> RefUnwindSafe for YangZhangVolatilityInput<'a>
impl<'a> Send for YangZhangVolatilityInput<'a>
impl<'a> Sync for YangZhangVolatilityInput<'a>
impl<'a> Unpin for YangZhangVolatilityInput<'a>
impl<'a> UnsafeUnpin for YangZhangVolatilityInput<'a>
impl<'a> UnwindSafe for YangZhangVolatilityInput<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more