Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/bnt/general/dispcpt.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function display_CPT(CPT) | |
2 | |
3 n = ndims(CPT); | |
4 parents_size = size(CPT); | |
5 parents_size = parents_size(1:end-1); | |
6 child_size = size(CPT,n); | |
7 c = 1; | |
8 for i=1:prod(parents_size) | |
9 parent_inst = ind2subv(parents_size, i); | |
10 fprintf(1, '%d ', parent_inst); | |
11 fprintf(1, ': '); | |
12 index = num2cell([parent_inst 1]); | |
13 index{n} = ':'; | |
14 fprintf(1, '%6.4f ', CPT(index{:})); | |
15 fprintf(1, '\n'); | |
16 end |