Mercurial > hg > camir-aes2014
annotate toolboxes/FullBNT-1.0.7/bnt/examples/static/StructLearn/pc2.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 % SGS p141 (female orgasm data set) |
wolffd@0 | 2 |
wolffd@0 | 3 C = eye(7,7); |
wolffd@0 | 4 C(2,1:1) = [-0.132]; |
wolffd@0 | 5 C(3,1:2) = [0.009 -0.136]; |
wolffd@0 | 6 C(4,1:3) = [0.22 -0.166 0.403]; |
wolffd@0 | 7 C(5,1:4) = [-0.008 0.008 0.598 0.282]; |
wolffd@0 | 8 C(6,1:5) = [0.119 -0.076 0.264 0.514 0.176]; |
wolffd@0 | 9 C(7,1:6) = [0.118 -0.137 0.368 0.414 0.336 0.338]; |
wolffd@0 | 10 |
wolffd@0 | 11 n = 7; |
wolffd@0 | 12 for i=1:n |
wolffd@0 | 13 for j=i+1:n |
wolffd@0 | 14 C(i,j)=C(j,i); |
wolffd@0 | 15 end |
wolffd@0 | 16 end |
wolffd@0 | 17 |
wolffd@0 | 18 max_fan_in = 4; |
wolffd@0 | 19 nsamples = 281; |
wolffd@0 | 20 alpha = 0.05; |
wolffd@0 | 21 pdag = learn_struct_pdag_pc('cond_indep_fisher_z', n, max_fan_in, C, nsamples, alpha) |