The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 =,3);
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.