Cluster

class aare.Cluster(x: int, y: int, data, cluster_size=(3, 3), dtype=<class 'numpy.int32'>)

Factory function to create a Cluster object. Provides a cleaner syntax for the templated Cluster in C++.

from aare import Cluster

Cluster(cluster_size=(3,3), dtype=np.float64)

Below is the API of a cluster of size \(3\times 3\) and type int but all variants share the same API.

class aare._aare.Cluster3x3i

Bases: pybind11_object

__init__(self: aare._aare.Cluster3x3i, arg0: int, arg1: int, arg2: numpy.ndarray[numpy.int32]) None
property data
max_sum_2x2(self: aare._aare.Cluster3x3i) tuple

calculates sum of 2x2 subcluster with highest energy and index relative to cluster center 0: top_left, 1: top_right, 2: bottom_left, 3: bottom_right

property x
property y

Note

More functions can be found in the ClusterVector documentation. Generally apply functions directly on the ClusterVector instead of looping over individual clusters.