www.pudn.com > gmm_utilities.zip > gmm_display_1D.m
function p = gmm_display_1D(g, NP) if nargin==1, NP = 100; end x = sort(g.x); P = max(g.P); xmin = x(1) - 4*sqrt(P); xmax = x(end) + 4*sqrt(P); x = xmin:(xmax-xmin)/NP:xmax; y = gmm_evaluate(g,x); p = [x; y];