Skip to content

Uniform Conditioning🍋

LocalisedUniformConditioning 🍋

Bases: Entity

Localised Uniform Conditioning Solver class.

Parameters:

Name Type Description Default
covariance_model Covariance

Covariance used for distance computation.

required
neighborhood_model Neighborhood

Neighborhood model used for weights computation.

required
axes list[Coord]

If solver is 2D or 3D. Defaults to [Coord.U, Coord.V, Coord.W].

[U, V, W]
search_tree SearchTrees

Spatial index used by the Rust backend.

OCTREE

Attributes:

Name Type Description
covariance_model Covariance | CovarianceElem

Covariance used for distance computation.

neighborhood_model Neighborhood

Neighborhood model used for weights computation.

axes Neighborhood

If solver is 2D or 3D.

covariance_model property 🍋

Return Covariance Model.

Returns:

Type Description
Covariance | CovarianceElem

Covariance model.

neighborhood_model property 🍋

Return Neighborhood Model.

Returns:

Type Description
Neighborhood

Neighborhood model.

solve(obj, obj_region, obj_attribute, anamorphosis, support, support_region, panel_support, panel_support_region, cutoff_grades, support_attribute, discr=None, panel_discr=None, slope_anamorphosis_classes=None) 🍋

Solve Localised Uniform Conditioning on a small size support (SMU) using a conditioning object and larger size support (panel).

Parameters:

Name Type Description Default
obj GeoRefObject

Conditioning Object.

required
obj_region str | None

Spatial subset of conditioning.

required
obj_attribute str

Property to estimate.

required
anamorphosis Anamorphosis

Anamorphosis class, allowing change of support computation, and local estimation. Its Hermite coefficients depend on how its Gaussian scores were computed, see Anamorphosis.

required
support GeoRefObject

Object to estimate onto (SMU).

required
support_region str | None

Spatial subset of estimation.

required
panel_support GeoRefObject

Object to estimate onto (Panel).

required
panel_support_region str | None

Spatial subset of estimation.

required
cutoff_grades Vector

Discretised range of values of input data.

required
support_attribute str

Property name to add in support.

required
discr Vector | None

Discretisation of each block (SMU) if block kriging. Defaults to None.

None
panel_discr Vector | None

Discretisation of each block (Panel) if block kriging. Defaults to None.

None
slope_anamorphosis_classes Vector | None

Slope of regression values used to average the panel anamorphosis change of support. Defaults to None.

None

Writes support_attribute on the SMU support, and support_attribute, {support_attribute}_variance and, for each cut-off grade, {support_attribute}_ore_prop_above_{cutoff} and {support_attribute}_metal_above_{cutoff} on the panel support. {cutoff} is the grade with 6 significant digits, trailing zeros removed, . replaced by _ and a leading - replaced by neg (2.0 -> 2, 0.35 -> 0_35). Properties are created on the first call and only updated inside the regions afterwards, so solve can be called again or region by region.

Raises:

Type Description
Warning

Maximum allowed neighbors is higher than number of conditioning data.

ValueError

Two cut-off grades give the same property name.

ValueError

Slope anamorphosis classes must be between 0 and 1.

ValueError

Slope anamorphosis classes must be in increasing order.

solve_api(neighborhood_model, covariance_model, dim, obj_coords, obj_data, anamorphosis, support_coords, support_cell_size, panel_coords, panel_cell_size, cutoff_grades, discr=None, panel_discr=None, support_rotation=None, panel_support_rotation=None, slope_anamorphosis_classes=None, search_tree=SearchTrees.OCTREE) staticmethod 🍋

Low-level Localised Uniform Conditioning solving method.

Parameters:

Name Type Description Default
neighborhood_model Neighborhood

Neighborhood model used for weights computation.

required
covariance_model Covariance

Covariance used for distance computation.

required
dim int

Number of dimensions.

required
obj_coords ndarray

Conditioning object coordinates in region along specified axes.

required
obj_data ndarray

Values in selected region.

required
anamorphosis Anamorphosis

Anamorphosis class, allowing change of support computation, and local estimation. Its Hermite coefficients depend on how its Gaussian scores were computed, see Anamorphosis.

required
support_coords ndarray

Support coordinates in region along specified axes.

required
support_cell_size ndarray

Support cell size for support effect determination.

required
panel_coords ndarray

Panel coordinates in region along specified axes.

required
panel_cell_size ndarray

Panel cell size.

required
cutoff_grades Vector

Discretised range of values of input data.

required
discr Vector | None

Discretisation of each block if block kriging. Defaults to None.

None
panel_discr Vector | None

Discretisation of each block (Panel) if block kriging. Defaults to None.

None
support_rotation ndarray | None

Rotation matrix of target support.

None
panel_support_rotation ndarray | None

Rotation matrix of panel target support.

None
slope_anamorphosis_classes Vector | None

Slope of regression values used to average the panel anamorphosis change of support. Defaults to None.

None
search_tree SearchTrees

Spatial index used by the Rust backend.

OCTREE

Returns:

Type Description
tuple[ndarray, ndarray, ndarray, ndarray, ndarray, ndarray, ndarray, ndarray]

LUC results, variance, variance estimation, slope, efficiency, ore, metal and luc_values ndarrays.

Raises:

Type Description
Warning

Maximum allowed neighbors is higher than number of conditioning data.

ValueError
  • Slope anamorphosis classes must be between 0 and 1.
  • Slope anamorphosis classes must be in increasing order.