Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: updating gmdistribution components
Replies: 5   Last Post: Apr 26, 2013 5:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tom Lane

Posts: 858
Registered: 12/7/04
Re: updating gmdistribution components
Posted: Apr 26, 2013 5:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> 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;
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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.