Skip to content

required_spacing builtin

required_spacing(curve, *, column='P90', threshold=0.15)

Largest data spacing whose uncertainty still meets a threshold.

Parameters:

Name Type Description Default
curve Table

Result of uncertainty_curve, or any table with spacing and column, sorted by spacing.

required
column str

Uncertainty column of curve.

'P90'
threshold float

Acceptable uncertainty.

0.15

Returns:

Type Description
float

Spacing interpolated linearly between the last row at or below threshold and the first above it; NaN when the first row is already above. When the curve never rises above, the largest spacing, with a warning that the required spacing lies beyond the tested range.

used in