percent_below_threshold_reducer

giant.coverage.visualizer:

giant.coverage.visualizer.percent_below_threshold_reducer(threshold)[source]

This helper function returns a callable which computes the percentage of values that is below some specified threshold.

Parameters:

threshold (float) – the threshold to use

Returns:

a callable

Return type:

Callable[[ndarray[tuple[Any, …], dtype[float64]]], float]