rsatoolbox.rdm.pairs module

Functions to select pairs

rsatoolbox.rdm.pairs.pairs_by_percentile(rdms: RDMs, min: float = 0, max: float = 100, **kwargs) DataFrame[source]

Select pairs within a percentile range.

Filter pairs first by providing the with_pattern argument.

Parameters:
  • rdms (RDMs) – RDMs object

  • min (float, optional) – Lower percentile bound. Defaults to 0.

  • max (float, optional) – Upper percentile bound. Defaults to 100.

  • kwargs – Pattern Descriptor value to match.

Returns:

Wide form DataFrame where each row represents a pair.

Return type:

DataFrame