TwoCurveBands¶
petrophys.model.TwoCurveBands
- class TwoCurveBands(base, steps)[source]¶
A two-curve classification:
basefor every sample where both curves are valid, then each(label, x_above, y_above)step in order wherex > x_aboveandy > y_above; later steps win.Examples
>>> b = TwoCurveBands("LOW", (("MID", 0.1, 1.0), ("HIGH", 0.2, 10.0))) >>> list(b.classify([0.05, 0.15, 0.25, 0.25], [50.0, 50.0, 5.0, 50.0])) ['LOW', 'MID', 'MID', 'HIGH']
Attributes
Methods
The label of every sample (
missingwhere either value is not valid; default validity: both finite).