Function fang_oost::get_expectation_single_element_extended [−][src]
pub fn get_expectation_single_element_extended<'a, U>(
x_min: f64,
x_max: f64,
x: f64,
fn_inv_discrete: &[Complex<f64>],
vk: U
) -> f64 where
U: Fn(f64, f64, usize) -> f64 + Sync + Send + 'a,
Generates expectation over single x.
The "type"
of expectation is handled by the vk
function.
@num_u Number of discrete steps in
the complex domain.
@x Vector of elements in real domain.
@fn_inv Characteristic function.
@vk Function which controls what kind
of expectation (the integrand).