Struct Jet2
pub struct Jet2<T: Passive> {
value: T,
d1: T,
d2: T,
}Fields§
§value: T§d1: T§d2: TImplementations§
§impl<T: Passive> Jet2<T>
impl<T: Passive> Jet2<T>
pub fn new(value: T, d1: T, d2: T) -> Self
pub fn constant(value: T) -> Self
pub fn variable(value: T) -> Self
pub fn value(&self) -> T
pub fn first_derivative(&self) -> T
pub fn second_derivative(&self) -> T
pub fn powf(self, n: T) -> Jet2<T>
§impl<T: Passive> Jet2<T>
impl<T: Passive> Jet2<T>
pub fn inv_norm_cdf(self) -> Jet2<T>
pub fn inv_norm_cdf(self) -> Jet2<T>
Inverse standard normal CDF Φ⁻¹(p). f' = 1/φ(f), f'' = f·f'².
Trait Implementations§
§impl<T: Passive> AddAssign for Jet2<T>
impl<T: Passive> AddAssign for Jet2<T>
§fn add_assign(&mut self, rhs: Jet2<T>)
fn add_assign(&mut self, rhs: Jet2<T>)
Performs the
+= operation. Read more§impl<T: Passive> AddAssign<T> for Jet2<T>
impl<T: Passive> AddAssign<T> for Jet2<T>
§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreimpl<T: Copy + Passive> Copy for Jet2<T>
§impl<T: Passive> DivAssign for Jet2<T>
impl<T: Passive> DivAssign for Jet2<T>
§fn div_assign(&mut self, rhs: Jet2<T>)
fn div_assign(&mut self, rhs: Jet2<T>)
Performs the
/= operation. Read more§impl<T: Passive> DivAssign<T> for Jet2<T>
impl<T: Passive> DivAssign<T> for Jet2<T>
§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read more§impl LiftParams for Jet2<f64>
impl LiftParams for Jet2<f64>
§impl<T: Passive> MulAssign for Jet2<T>
impl<T: Passive> MulAssign for Jet2<T>
§fn mul_assign(&mut self, rhs: Jet2<T>)
fn mul_assign(&mut self, rhs: Jet2<T>)
Performs the
*= operation. Read more§impl<T: Passive> MulAssign<T> for Jet2<T>
impl<T: Passive> MulAssign<T> for Jet2<T>
§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read more§impl<T: Passive> PartialOrd for Jet2<T>
impl<T: Passive> PartialOrd for Jet2<T>
§impl Real for Jet2<f64>
impl Real for Jet2<f64>
type Passive = f64
fn value(&self) -> f64
fn zero() -> Self
fn one() -> Self
fn powf(&self, exponent: Self) -> Self
fn powi(&self, exponent: i32) -> Self
fn sum(xs: &[Self]) -> Self
fn dot(xs: &[Self], ys: &[Self]) -> Self
fn weighted_sum(ws: &[Self::Passive], xs: &[Self]) -> Self
fn weighted_dot(ws: &[Self::Passive], xs: &[Self], ys: &[Self]) -> Self
fn max(&self, other: &Self) -> Self
fn min(&self, other: &Self) -> Self
§fn abs(&self) -> Self
fn abs(&self) -> Self
Absolute value.
f' = sign(x), f'' = 0 (away from 0). At x = 0 the derivative is not defined; every surface takes the sub-gradient f'(0) = +1 (the x >= 0 branch), matching the winning-branch convention max/min use for payoffs.§fn inv_norm_cdf(&self) -> Self
fn inv_norm_cdf(&self) -> Self
Inverse standard normal CDF
Φ⁻¹(p). f' = 1/φ(f), f'' = f·f'².Auto Trait Implementations§
impl<T> Freeze for Jet2<T>where
T: Freeze,
impl<T> RefUnwindSafe for Jet2<T>where
T: RefUnwindSafe,
impl<T> Send for Jet2<T>
impl<T> Sync for Jet2<T>
impl<T> Unpin for Jet2<T>where
T: Unpin,
impl<T> UnsafeUnpin for Jet2<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Jet2<T>where
T: UnwindSafe,
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