Skip to content

cell_declustering builtin

cell_declustering(
    coords,
    values,
    *,
    cell_size=None,
    sizes=None,
    offsets=25,
    minimize=True,
)

Cell declustering. Without cell_size, scans sizes (default: 30 sizes up to half the largest extent), each averaged over offsets grid origins, and keeps the size with the lowest mean (minimize=False: highest). The weights are averaged over the same offsets origins, so they sum to the number of samples and mean equals means at the kept size. values may name a column of coords.

used in