1function MAP = amap2_fit_gamma_map(
map)
2% Performs approximate fitting of a given MAP, yielding a second-order
3% MAP in canonical form.
6% -
map: the MAP (of arbitrary order) to fit
8% - MAP: fitted second-order MAP
11M2 = map_moment(
map,2);
12M3 = map_moment(
map,3);
13GAMMA = map_gamma(
map);
15MAP = amap2_fit_gamma(M1, M2, M3, GAMMA);