allera / One_Dim_Mixture_Models

python and matlab tools to fit Gauss Gamma and Gauss inverse Gamma mixture models
0 stars 1 forks source link

parameters estimation of gamma mixture model #2

Open HuiXu529731723 opened 5 years ago

HuiXu529731723 commented 5 years ago

Hi, could you please tell me how to realise the parameters estimation of gamma mixture model with two component (not use gaussian model) adopting this matlab code? I can not get the right estimated parameters.

allera commented 5 years ago

Hi ! I added a example in the python implementation that fits two Gammas. The code is in python/examples/Gammas_mix_mod_example.py

It is not very clean but its easy enough and self explaining. Nevertheless you can ask me if you need further help.

I decided to add the python example because I already had adapted the python code to work easy with different distributions. The Matlab code it was originally made to compare Gauss/Gammas and Gauss/InvGamma models and need some more adaptation to achieve the same... Nevertheless I have code somewhere else to do that so if you really really need Matlab code.... then I could try to add it also, in some time :)

I hope this helps cheers A