iscc.sample.spatialize ¶
Give each cell a sub-deme (row, col) position, optionally thinning to a section.
Each deme's cells are scattered uniformly within the deme's unit cell (its integer
coordinate ± jitter); the count engine tracks only per-deme counts, so the intra-deme
layout is cosmetic while the composition (and the sampled section depth) is exact. When
section_frac < 1 a random section_frac of each deme's cells is kept, modelling a thin
flat section through the 3-D cell column.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cell_data
|
dict
|
Per-cell ground-truth tables from the sampling stage; uses |
required |
section_frac
|
float
|
Fraction of each deme's cells kept in the flat section. |
1.0
|
jitter
|
float
|
Half-width of the uniform scatter within a deme's unit cell. |
0.5
|
seed
|
int
|
RNG seed for the per-deme section subsample and the jitter. |
0
|
Returns:
| Type | Description |
|---|---|
dict
|
A copy of |