pub struct VolatilityConeOutput {
pub current: f64,
pub min: f64,
pub median: f64,
pub max: f64,
pub percentile: f64,
}Expand description
Output of VolatilityCone: the current realized volatility together with
the envelope (the “cone”) it sits inside over the lookback window.
Fields§
§current: f64Latest realized volatility (sample stddev of log returns over window).
min: f64Lowest realized volatility seen over the lookback window.
median: f64Median realized volatility over the lookback window.
max: f64Highest realized volatility seen over the lookback window.
percentile: f64Percentile rank of current within the lookback distribution, in
[0, 100] — the share of stored volatilities <= current, times 100.
Trait Implementations§
Source§impl Clone for VolatilityConeOutput
impl Clone for VolatilityConeOutput
Source§fn clone(&self) -> VolatilityConeOutput
fn clone(&self) -> VolatilityConeOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VolatilityConeOutput
Source§impl Debug for VolatilityConeOutput
impl Debug for VolatilityConeOutput
Source§impl PartialEq for VolatilityConeOutput
impl PartialEq for VolatilityConeOutput
Source§fn eq(&self, other: &VolatilityConeOutput) -> bool
fn eq(&self, other: &VolatilityConeOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VolatilityConeOutput
Auto Trait Implementations§
impl Freeze for VolatilityConeOutput
impl RefUnwindSafe for VolatilityConeOutput
impl Send for VolatilityConeOutput
impl Sync for VolatilityConeOutput
impl Unpin for VolatilityConeOutput
impl UnsafeUnpin for VolatilityConeOutput
impl UnwindSafe for VolatilityConeOutput
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