代码搜索结果
找到约 582,192 项符合
Cortex-M 的代码
sin_x.m
% sin_x.m: This m-file calculates and plots the
% function sin(x) for 0
calc_area.m
% This m-file calculates the area of a circle,
% and displays the result.
radius = 2.5;
area = pi * 2.5^2;
string = ['The area of the circle is ' num2str(area)];
disp(string);
calc_area.m
% This m-file calculates the area of a circle,
% and displays the result.
radius = 2.5;
area = pi * 2.5^2;
string = ['The area of the circle is ' num2str(area)];
disp(string);
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
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;