Search ¶
Neighborhood: radius is in meters along the major axis of the
search ellipsoid (rotation azimuth, dip, rake and ratios semi/major,
minor/major), or of the variogram's anisotropy when no ellipsoid is given.
ranges (major, semi, minor) give the ellipsoid in meters instead of
radius and ratios.
octant takes at most max_samples / 8 samples from each octant around
the target, split along the ellipsoid's axes; with 2D data (one elevation)
the sectors are the ellipse's four quadrants, max_samples / 4 each.
sectors instead splits the plane of the ellipsoid's major and
semi-major axes into that many (2 to 360) equal angles, the first
starting at the major axis. Either takes at most max_per_sector samples from each
(max_samples over the number of sectors, rounded up, by default).
min_sectors leaves a target unestimated by this pass unless that many
octants or sectors hold a sample, and max_empty_sectors when more than
that many in a row are empty: plane sectors in turn around the circle,
octants around the ellipsoid's minor axis, the four above its major /
semi-major plane apart from the four below (with 2D data the four
quadrants, so min_sectors is at most 4). min_holes leaves it
unestimated unless its samples come from that many drill holes (holes
at fit; a sample without one counts as its own hole). Such targets go
to the next pass, as those with fewer than min_samples do.
high_grade, a HighGrade or (threshold, radius), restricts samples
above threshold to targets within radius, measured in the same
ellipsoid unless the HighGrade has its own, in estimation and
cross-validation alike; give each pass its own to vary it by pass. The threshold is always in data
units: simulators compare it with the data values and the simulated
values of nodes, so it picks the same samples as in estimation. Estimators also take a sequence
of searches as passes: targets one leaves unestimated go to the next.
soft lets samples of another domain inform a target strictly within a
distance in the same ellipsoid: one distance for every pair of domains,
or a dict {(target_domain, sample_domain): distance}, one way; pairs not
listed are hard.
target_slope or target_efficiency (at most one) calibrate the kriging
estimators per target: each takes the fewest samples from min_samples
whose slope of regression or kriging efficiency reaches it, and
max_samples where none does. With octant the fewer samples are taken
from the sectors in turn. The sector and hole rules check the samples
before calibration takes the fewer.
length_unit
property
¶
length_unit
Length unit of the radius and of the variogram's ranges used with it; None when not declared.
rotation
property
¶
rotation
Azimuth, dip and rake of the search ellipsoid; None when the search follows the variogram's anisotropy.
soft
property
¶
soft
The soft distance, or the dict of distances by domain pair; None when domain boundaries are hard.
target_efficiency
property
¶
target_efficiency
Kriging efficiency the search is calibrated to; None when it is not.
target_slope
property
¶
target_slope
Slope of regression the search is calibrated to; None when it is not.
from_json
staticmethod
¶
from_json(text)
Reads to_json output; raises InvalidInput on another class's JSON
or a newer format.
passes
staticmethod
¶
passes(
base,
factors=Ellipsis,
*,
min_samples=None,
max_samples=None,
)
Passes of one search with its ellipsoid widened pass by pass.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base
|
Search
|
The first pass at factor 1; every pass keeps its other settings. |
required |
factors
|
sequence of float
|
Multiplier of the radius (all three ranges) of each pass. |
Ellipsis
|
min_samples
|
sequence of int
|
One per pass, in place of the base's. |
None
|
max_samples
|
sequence of int
|
One per pass, in place of the base's. |
None
|
Returns:
| Type | Description |
|---|---|
list of Search
|
The passes, for any estimator's |
Examples:
>>> Search.passes(Search(ranges=(80, 40, 10)), (1, 2), max_samples=(16, 24))
Used in