TwoCurveClassTable

petrophys.model.TwoCurveClassTable

class TwoCurveClassTable(name, quantities, units, bands, missing, source)[source]

The canonical classes of a property graded from two curves.

Parameters:
name

The property’s name.

Type:

str

quantities

What the two curves are, in the order classify() takes them.

Type:

tuple of str

units

Units of the two curves.

Type:

tuple of str

bands

The classes.

Type:

TwoCurveBands

missing

Label of a sample where either curve has no valid value.

Type:

str

source

Where the edges come from.

Type:

str

Attributes

labels

The labels from the lowest to the highest grade.

Methods

classify

The label of every sample, missing where either value is not valid (default validity: both finite).

describe

The classes as threshold text.

classify(x, y, valid=None)[source]

The label of every sample, missing where either value is not valid (default validity: both finite).

Parameters:

valid (ndarray | None)

Return type:

ndarray

property labels: Tuple[str, ...]

The labels from the lowest to the highest grade.

describe()[source]

The classes as threshold text.

Return type:

str