Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: updating gmdistribution components
Posted:
Apr 26, 2013 5:08 PM


> Kindly provide some help, i m stuck with updating mean and sigma > calculated by gmdistribution function.
Would this be adequate?
load fisheriris g = gmdistribution.fit(meas,3); mu = g.mu; mu(2,2)=45; g2 = gmdistribution(mu, g.Sigma, g.PComponents)
I create a new one from the ingredients in the first one, one of which I modified. This avoids changing the original distribution object. Doing that would invalidate some of its properties, such as AIC, so perhaps this will give you what you seek.
 Tom



