Mercurial > hg > mauch-mirex-2010
annotate _FullBNT/KPMtools/is_stochastic.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function p = is_stochastic(T) |
matthiasm@8 | 2 % IS_STOCHASTIC Is the argument a stochastic matrix, i.e., the sum over the last dimension is 1. |
matthiasm@8 | 3 % p = is_stochastic(T) |
matthiasm@8 | 4 |
matthiasm@8 | 5 p = approxeq(T, mk_stochastic(T)); |