OpenPisco.MuscatExtentions.PartitionRefining module#

This module displays a technique called Partition refinement https://en.wikipedia.org/wiki/Partition_refinement

OpenPisco.MuscatExtentions.PartitionRefining.CheckIntegrity()[source]#
class OpenPisco.MuscatExtentions.PartitionRefining.PartitionRefining(cellsByGroupnumber: Dict, cells: Union[ndarray, List[int]])[source]#

Bases: object

Class display a technique representing a partition of a set as a data structure that allows the partition to be refined by splitting its sets into a larger number of smaller sets. From here onwards we denote by a family an elementary set, meaning that a so-called group must be the union of several families.

ExecutePartitioning()[source]#

Implementation of the algorithm

Provide a partition of the original set by updating it, cellsByFamily, in a larger number of smaller disjoints sets (minimum required to describe the groups) Provide the association between each family and the groups that contain them by updating groupsByFamily

GetCellsByFamily() dict[source]#

Retrieve association between groups and cells

Returns

cells by family

Return type

dict

GetGroupsByFamily() dict[source]#

Get association between groups and family

Returns

groups by family

Return type

dict