pub struct CkspInput<'a> {
pub data: CkspData<'a>,
pub params: CkspParams,
}Fields§
§data: CkspData<'a>§params: CkspParamsImplementations§
Source§impl<'a> CkspInput<'a>
impl<'a> CkspInput<'a>
pub fn from_candles(candles: &'a Candles, params: CkspParams) -> Self
pub fn from_slices( high: &'a [f64], low: &'a [f64], close: &'a [f64], params: CkspParams, ) -> Self
pub fn with_default_candles(candles: &'a Candles) -> Self
pub fn get_p(&self) -> usize
pub fn get_x(&self) -> f64
pub fn get_q(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CkspInput<'a>
impl<'a> RefUnwindSafe for CkspInput<'a>
impl<'a> Send for CkspInput<'a>
impl<'a> Sync for CkspInput<'a>
impl<'a> Unpin for CkspInput<'a>
impl<'a> UnsafeUnpin for CkspInput<'a>
impl<'a> UnwindSafe for CkspInput<'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