SIS ¶
Sequential indicator simulation of categories 0..k, one indicator
variogram per category.
fit
method descriptor
¶
fit(coords, categories, *, holes=None, proportions=None)
Takes the categories 0..k at coords. holes tag the samples for
max_per_hole; samples sharing a location keep the first, with a
warning naming their holes. Both may name columns of coords.
proportions, shape (n, k) (an array or a Table such as
combine_proportions returns), are local category proportions at the
samples; simulate then needs them at the targets, and krigs each
indicator minus its local proportion by simple kriging, so every node
is drawn towards its own proportions.
from_parquet
staticmethod
¶
from_parquet(path)
Reads to_parquet output; raises InvalidInput on another class's file
or a newer format.
simulate
method descriptor
¶
simulate(
targets,
*,
n=100,
seed=0,
keep=None,
blocks=None,
proportions=None,
)
Summary of n realizations, each seeded from seed and its index; the (n, targets)
realizations themselves only when keep. With blocks (a
coarser BlockModel), each block takes the category filling most of its
node volume, ties to the smallest, as in BlockModel.regularize; blocks as in
SGS.simulate. proportions, shape (targets, k), are the local
category proportions at the targets, when fit had them at the samples.
to_parquet
method descriptor
¶
to_parquet(path)
Writes arrays as Parquet columns and parameters as JSON in the file
metadata; from_parquet reads it back.
used in