'How to calculate the mixed exponential distribution?

I used the EM algorithm to calculate the mixed exponential distribution. Then how do you calculate and draw the distribution of each cluster? Input data is 1×10000, The number of cluster is 7

lambda = ParamBest.lambda;                 % vecter of density parameters 1×7 
prior_prob = ParamBest.prior_prob;         % prior probabilty 1×7
conditional_prob = ParamBest.conditional_prob; % conditinal probabilty 7×10000
w = [ 0.5213    0.2146    0.1109    0.0725    0.0370    0.0329    0.0107] weight


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source