rsatoolbox.rdm.transform module¶
transforms, which can be applied to RDMs
- rsatoolbox.rdm.transform.positive_transform(rdms)[source]¶
sets all negative entries in an RDM to zero and returns a new RDMs
- rsatoolbox.rdm.transform.rank_transform(rdms: RDMs, method='average')[source]¶
applies a rank_transform and generates a new RDMs object This assigns a rank to each dissimilarity estimate in the RDM, deals with rank ties and saves ranks as new dissimilarity estimates. As an effect, all non-diagonal entries of the RDM will range from 1 to (n_dim²-n_dim)/2, if the RDM has the dimensions n_dim x n_dim.