pub fn flag_to_weight_array<D>(
    flag_array: ArrayView<'_, bool, D>,
    weight_factor: f64
) -> Array<f32, D>where
    D: Dimension,
Expand description

Convert the given ndarray of boolean flags to an ndarray of float weights