Skip to main content

BreakTiesParameters

GitHub source

BreakTiesParameters

evo.compute.tasks.geostatistics.break_ties.BreakTiesParameters

Parameters for the break-ties task.

Defines all inputs needed to run a break-ties spatial tie-breaking task.

Example::

>>> from evo.compute.tasks import run, SearchNeighborhood, Ellipsoid, EllipsoidRanges, Target
>>> from evo.compute.tasks.geostatistics.break_ties import BreakTiesParameters
>>>
>>> params = BreakTiesParameters(
... source=pointset.attributes["grade"],
... target=Target.new_attribute(pointset, "grade_tiebroken"),
... neighborhood=SearchNeighborhood(
... ellipsoid=Ellipsoid(ranges=EllipsoidRanges(200, 150, 100)),
... max_samples=20,
... ),
... )
>>> result = await run(manager, params)

source​

source: AnySourceAttribute

The source object and attribute containing values in which ties will be broken.

target​

target: AnyTargetAttribute

The target object and attribute to create or update with tie-broken results.

neighborhood​

neighborhood: SearchNeighborhood

Search neighborhood parameters.

In this break-ties algorithm, the final value of each tied point is influenced by the mean of nearby points. The search parameters determine which nearby points to use.

seed​

seed: int = 38239342

Seed for the random number generator.

Was this page helpful?