function pot = cg_mom_to_can(pot)

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