mixture model training added; EM for mixture model added

- EM for mixture model
- mixture model training
- unittest for mixture model with gaussian distributions 
I dont think so. The CGaussian method takes CDistribution as input. I can
change it to CSGObject and then it might start working..
On 7 Aug 2014 02:09, "Fernando Iglesias" <notifications@github.com> wrote:

> In tests/unit/distribution/MixtureModel_unittest.cc:
>
> > +	SGMatrix<float64_t> cov2(1,1);
> > +	cov2(0,0)=3;
> > +	CGaussian* g2=new CGaussian(mean2,cov2,DIAG);
> > +
> > +	comps->push_back(g1);
> > +	comps->push_back(g2);
> > +
> > +	SGVector<float64_t> weights(2);
> > +	weights[0]=0.5;
> > +	weights[1]=0.5;
> > +
> > +	CMixtureModel* mix=new CMixtureModel(comps,weights);
> > +	mix->train(feats);
> > +
> > +	CDistribution* distr=CDistribution::obtain_from_generic(comps->get_element(0));
> > +	CGaussian* outg=CGaussian::obtain_from_generic(distr);
>
> Out of curiosity, does it work doing directly
> CGaussian* outg=CGaussian::obtain_from_generic(comps->get_element(0));?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/shogun-toolbox/shogun/pull/2448/files#r15921044>.
>