Skip to main content

threshold_gradient

Function threshold_gradient 

Source
fn threshold_gradient(
    field: &[f64],
    grid: &Grid,
    axis: usize,
    threshold: f64,
) -> Vec<f64>
Expand description

1.0 where |∂_axis field| < threshold, else 0.0.