Function fang_oost::get_expectation_x_extended[][src]

pub fn get_expectation_x_extended<T, U>(
    num_x: usize,
    num_u: usize,
    x_min: f64,
    x_max: f64,
    fn_inv: T,
    vk: U
) -> impl IndexedParallelIterator<Item = f64> where
    T: Fn(&Complex<f64>) -> Complex<f64> + Sync + Send,
    U: Fn(f64, f64, usize) -> f64 + Sync + Send

Generates expectation over equal mesh in the real domain. The "type" of expectation is handled by the vk function.
@num_x Number of discrete steps in the real domain. @num_u Number of discrete steps in the complex domain. @x_min Lower truncation of the real domain. @x_max Upper truncation of the complex domain. @fn_inv Characteristic function. @vk Function which controls what kind of expectation (the integrand).