make_Pmat: Make permutation matrix

View source: R/EM_BrainMap.R

make_PmatR Documentation

Make permutation matrix

Description

Create permutation matrix P to regroup elements of s by locations instead of by networks

Usage

make_Pmat(Q, nvox)

Arguments

Q

The number of networks

nvox

The number of spatial locations (V)

Details

If s=(s1,...,sQ) is grouped by networks 1,...Q, then Ps=(s(1),...,s(nvox)) is grouped by locations 1,...,nvox

Value

P Permutation matrix size QVxQV


BayesBrainMap documentation built on Aug. 8, 2025, 7:25 p.m.