spm_psi.m 549 B

12345678910111213141516
  1. function [A] = spm_psi(A)
  2. % normalisation of a probability transition rate matrix (columns)
  3. % FORMAT [A] = spm_psi(A)
  4. %
  5. % A - numeric array
  6. %
  7. % See also: psi.m
  8. %__________________________________________________________________________
  9. % Copyright (C) 2015 Wellcome Trust Centre for Neuroimaging
  10. % Karl Friston
  11. % $Id: spm_psi.m 7300 2018-04-25 21:14:07Z karl $
  12. % normalisation of a probability transition rate matrix (columns)
  13. %--------------------------------------------------------------------------
  14. A = bsxfun(@minus, psi(A), psi(sum(A,1)));