Skip to content

Commit e211d16

Browse files
check input to DBNs, fixes rasmusbergpalm#40
1 parent 264b73a commit e211d16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DBN/dbnsetup.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function dbn = dbnsetup(dbn, x, opts)
2+
assert(all(x(:)>=0) && all(x(:)<=1), "all data in x must be in [0:1]");
23
n = size(x, 2);
34
dbn.sizes = [n, dbn.sizes];
45

0 commit comments

Comments
 (0)