permute¶
- get_proximitry_matrix(group)¶
Computes the proximitry matrix for a group of individuals.
- Parameters:
group (
Group|AnnotatedGroup) – The group of individuals.- Return type:
- Returns:
A tuple containing the proximitry matrix and the timestamps.
Note
The keypoints to compute the proximitry matrix are currently hardcoded to the first on the actor, and the first three on the recipient.
- permute_recipients(sampleable, *, neighbor_rank)¶
Permute recipients in a dataset or group.
The current recipient of each observation is replaced with the neighbor at the specified rank.
- Parameters:
sampleable (
TypeVar(T, bound=AnnotatedDataset|AnnotatedGroup)) – The dataset or group to permute recipients in.neighbor_rank (
int) – The rank of the neighbor to replace the current recipient with.
- Return type:
TypeVar(T, bound=AnnotatedDataset|AnnotatedGroup)- Returns:
The permuted dataset or group.