1function PH=kpcfit_ph_prony(E,n)
2f = factorial(0:(2*n-1));
3m = kpcfit_hyper_charpoly(E,n);
4theta=roots(m); % determine eigenvalues from characteristic poly
7 C(i,1:n) = f(i+1)*theta.^i;
9M = (C\E(1:n)
')'; % determine entry probabilities
11PH{2}=-diag(-1./theta)*ones(n,1)*M;