Info from Lead field matrix

Thank you @John_Mosher for your reply
so if I want to compute the TP ratio indicated above in the image what should I do?
image
so as I understand that t is the gain matrix,
and what about p?
and also v?
how can I get it?
does brainstorm also provide it?
do you know a toolbox that provide them?