function pot = cg_can_to_mom(pot)

if pot.subtype ~= 'm'
  for i=1:pot.dsize
    [pot.pot{i}.logp, pot.pot{i}.mu, pot.pot{i}.Sigma] = canonical_to_moment(...
	pot.pot{i}.g, pot.pot{i}.h, pot.pot{i}.K);
  end
  pot.subtype = 'm';
end
