about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/CPDs/Old/@tabular_chance_node/CPD_to_upot.m
blob: 3ce87d0b71a5f7920c825348ad68dc5fec7ec7b2 (plain)
1
2
3
4
5
6
function pot = CPD_to_upot(CPD, domain)
% CPD_TO_UPOT Convert a CPD to a utility potential
% pot = CPD_to_upot(CPD, domain)

sz = CPD.size; % mysize(CPD.CPT);
pot = upot(domain, sz, CPD.CPT, 0*myones(sz));