pub fn deriv_with_fx<S, T>(dist: &T, x: S, fx: S, h: S) -> S
where
    S: Float,
    T: Univariate<S, S>
{
    let fx_h = dist.cdf(x + h);
    (fx_h - fx) / h
}
/// Calculate derivative with fx value which was already calculated.
Calculate derivative with fx value which was already calculated.
Calculate derivative with fx value which was already calculated .
pub fn deriv_with_fx<S, T>(dist: &T, x: S, fx: S, h: S) -> S
where
    S: Float,
    T: Univariate<S, S>
{
    let fx_h = dist.cdf(x + h);
    (fx_h - fx) / h
}
pub fn deriv_with_fx < S , T > ( dist : & T , x : S , fx : S , h : S ) -> S where S : Float , T : Univariate < S , S > { let fx_h = dist . cdf ( x + h ) ; ( fx_h - fx ) / h }
Calculate derivative with fx value which was already calculated.
Calculate derivative with fx value which was already calculated .
dist
&T
x
S
fx
S
h
S
dist
&T
x
S
fx
S
h
S