function pot = cg_mom_to_can(pot) % CG_MOM_TO_CAN Convert a CG potential from moment to canonical form, if necessary. % pot = cg_m…
POT 源代码
电位器(Pot)作为可调电阻,在电路设计中扮演着至关重要的角色,广泛应用于音量控制、电压调节及传感器等领域。通过调整其阻值,工程师可以精确地控制电流或电压,实现对电子设备性能的优化。无论是初学者还是资深开发者,掌握电位器的工作原理及其在模拟电路中的应用都是必不可少的技能。访问我们…
function [pot, loglik] = normalize_pot(pot) % NORMALIZE_POT Convert the CG potential Pr(X,E) into Pr(X|E) and return log Pr(E). % …
function pot = cgpot(ddom, cdom, node_sizes, can, mom, subtype) % CPOT Make a canonical CG potential. % function pot = cgpot(ddom,…
function pot = set_domain_pot(pot, domain) % SET_DOMAIN_POT Change the domain of a potential (cgpot) % pot = set_domain_pot(pot, d…
function [pot, loglik] = normalize_pot(pot) % NORMALIZE_POT Convert the CG potential Pr(X,E) into Pr(X|E) and return log Pr(E). % …
function m = pot_to_marginal(pot) % POT_TO_MARGINAL Convert a cgpot to a marginal structure. % m = pot_to_marginal(pot) pot = cg_…
function dom = domain_pot(pot) % DOMAIN_POT Return the domain of this cgpot. % dom = domain_pot(pot) dom = pot.domain;
function pot = cg_can_to_mom(pot) % CG_CAN_TO_MOM Convert a CG potential from canonical to moment form, if necessary. % pot = cg_c…
function pot = enter_discrete_evidence_pot(pot, Y, y) %ns = sparse(1, max(pot.domain)); ns = zeros(1, max(pot.domain)); ns(pot.dd…
function pot = set_domain_pot(pot, domain) % SET_DOMAIN_POT Change the domain of a potential (dpot) % pot = set_domain_pot(pot, do…