1% moms = MarginalMomentsFromTrace(trace, K)
3% Returns the marginal moments of a trace.
7% trace : vector of doubles
10% The number of moments to compute
14% moms : vector of doubles
15% The (raw) moments of the trace
17function moms = MarginalMomentsFromTrace (trace, K)
25 moms(i) = sum(trace.^i);
27 moms = moms / length(trace);