Generate Gaussian Mixture Distribution samples for PEM

3 visualizaciones (últimos 30 días)
Bahman
Bahman el 10 de Oct. de 2018
Comentada: Bruno Luong el 13 de Oct. de 2018
How to generate samples from GMM distribution? I wanna set them to point estimation method.

Respuesta aceptada

Bruno Luong
Bruno Luong el 10 de Oct. de 2018
% Characteristics of your GM distribution
mu = [1,2,5]
sigma = [0.2, 0.3, 0.4];
A = [5 3 2];
% number of samples
n = 10000;
c = [0, cumsum(A(:)')];
c = c/c(end);
[~,i] = histc(rand(1,n),c);
r = randn(1,n).*sigma(i) + mu(i);
hist(r,100)
  3 comentarios
Bahman
Bahman el 13 de Oct. de 2018
Thank you Bruno Luong. But how can estimate 2 point?
Bruno Luong
Bruno Luong el 13 de Oct. de 2018
Sorry I don't know point estimation method to answer.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by