pub struct ControlOutput<const N: usize> {
pub lambda_plus: [f64; N],
pub lambda_minus: [f64; N],
pub flow: f64,
}Expand description
Result of the model’s optimization step.
Contains the optimal trading intensities (controls) for a given state.
Fields§
§lambda_plus: [f64; N]Intensity to acquire inventory (+1 unit). Typically the “Hit Bid” intensity for a market maker.
lambda_minus: [f64; N]Intensity to shed inventory (-1 unit). Typically the “Hit Ask” intensity for a market maker.
flow: f64Net expected inventory flow rate (units per time). $dq/dt = \lambda_+ - \lambda_-$.
Trait Implementations§
Source§impl<const N: usize> Clone for ControlOutput<N>
impl<const N: usize> Clone for ControlOutput<N>
Source§fn clone(&self) -> ControlOutput<N>
fn clone(&self) -> ControlOutput<N>
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<const N: usize> Copy for ControlOutput<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ControlOutput<N>
impl<const N: usize> RefUnwindSafe for ControlOutput<N>
impl<const N: usize> Send for ControlOutput<N>
impl<const N: usize> Sync for ControlOutput<N>
impl<const N: usize> Unpin for ControlOutput<N>
impl<const N: usize> UnsafeUnpin for ControlOutput<N>
impl<const N: usize> UnwindSafe for ControlOutput<N>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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