mercredi 1 avril 2015

C++11 normal_distribution and MATLAB normpdf

I have to develop normpdf MATLAB function in C++ environment. But I got a problem..


normpdf(X, u, sigma) in MATLAB is similar with normal_distribution gaussian(u, sigma);


where is X values? It means I want the gaussian function not gaussian random. How I sample a output value with gaussian distribution?


Thanks.


Aucun commentaire:

Enregistrer un commentaire