mccube._kernels.stratified
StratifiedPartitioningKernel
¤
Bases: AbstractPartitioningKernel
Norm based particle stratification/partitioning.
Computes the norm of each particle, sorts by the norm, and then partitions the sorted particles into \(m\) equal-size strata/partitions.
Attributes:
-
partition_count–indicates the requested number of partitions, \(m\).
-
norm(Callable[[Shaped[ArrayLike, 'n d']], Shaped[ArrayLike, ' n']] | None) –the norm used for sorting the particles. If
None, the particles remain unsorted and the kernel is equivalent toparticles.reshape.