代码搜索结果
找到约 582,192 项符合
Cortex-M 的代码
lsmywe.m
function [a,b,sig2,iflag] = lsmywe(x,n,ip,iq,m,epsilon)
lag=m+1;
r = correlat(n,lag,0,x,x);
for i=1:m-iq
for j=1:ip
if iq+i-j >= 0
rr(i,j)=r(iq+1+i-j);
end
if iq+i-j < 0
log_prob_node.m
function L = log_prob_node(CPD, self_ev, pev)
% LOG_PROB_NODE Compute sum_m log P(x(i,m)| x(pi_i,m), theta_i) for node i (discrete)
% L = log_prob_node(CPD, self_ev, pev)
%
% self_ev(m) is the evidenc
marginal_nodes.m
function m = marginal_nodes(engine, query)
% MARGINAL_NODES Compute the marginal on the specified query nodes (quickscore)
% marginal = marginal_nodes(engine, query)
%
% 'query' must be a single disea
marginal_nodes.m
function [m, pot] = marginal_nodes(engine, query)
% MARGINAL_NODES Compute the marginal on the specified set of nodes (global_joint)
% [m, pot] = marginal_nodes(engine, query)
pot = marginalize_pot(e
combine_marginals_into_joint.m
function joint = combine_marginals_into_joint(marginalsT, hnodes, ns)
jointT = dpot(hnodes, ns(hnodes));
for i=hnodes(:)'
jointT = multiply_by_pot(jointT, marginalsT{i});
end
m = pot_to_marginal(jo
pot_to_marginal.m
function m = pot_to_marginal(pot)
% POT_TO_MARGINAL Convert a dpot to a marginal structure.
% m = pot_to_marginal(pot)
m.domain = pot.domain;
m.T = pot.T;
m.mu = [];
m.Sigma = [];
%if isvector(m.T
pot_to_marginal.m
function m = pot_to_marginal(pot)
% POT_TO_MARGINAL Convert a cgpot to a marginal structure.
% m = pot_to_marginal(pot)
pot = cg_can_to_mom(pot);
m.domain = pot.domain;
n = pot.csize;
d = length(pot.
pot_to_marginal.m
function m = pot_to_marginal(pot)
% POT_TO_MARGINAL Convert a scgpot to a marginal structure.
% m = pot_to_marginal(pot)
assert(isempty(pot.ctaildom))
m.domain = pot.domain;
n = pot.cheadsize;
pot_to_marginal.m
function m = pot_to_marginal(pot)
% POT_TO_MARGINAL Convert a mpot to a marginal structure.
% m = pot_to_marginal(pot)
m.domain = pot.domain;
m.T = exp(pot.logp);
m.mu = pot.mu;
m.Sigma = pot.Sigma;
pot_to_marginal.m
function m = pot_to_marginal(pot)
% POT_TO_MARGINAL Convert a upot to a structure.
% m = pot_to_marginal(pot)
m.domain = pot.domain;
m.T = pot.p;
m.U = pot.u;