added option for setting the value of zeros in cpt table. By using a small value rather than 0.0 some errors with jt and vel are avoided

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2123 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
rzf
2008-03-06 07:11:18 +00:00
parent 9c54e6c7bb
commit b55a9bd8f9
5 changed files with 18 additions and 7 deletions

View File

@@ -57,9 +57,9 @@ init_bnt :-
matlab_on, !.
init_bnt :-
getcwd(D),
cd('~/Yap/CLPBN/FullBNT/BNT'),
% cd('~/Yap/CLPBN/FullBNT/BNT'),
start_matlab('matlab -nojvm -nosplash'),
matlab_eval_string("add_BNT_to_path",_),
% matlab_eval_string("add_BNT_to_path",_),
cd(D).
mk2s(0, []) :- !.
@@ -73,6 +73,7 @@ mkdag(N,Els) :-
add_els(Els,N,Dag),
Dag=..[_|L],
addzeros(L),
format("priova",[]),
matlab_matrix(N,N,L,dag).
add_els([],_,_).

View File

@@ -19,6 +19,8 @@
#include "YapInterface.h"
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#if defined(__MINGW32__) || _MSC_VER
#include <windows.h>
#endif