dimanche 13 septembre 2015

2d normal distribution c++

So, my math knowledge is limited to a 3 year old high-school diploma, so I guess that this question's been answered before, but not in terms I can understand.

I've been asked to take an algorithm we use at our company, which previously generated uniformly distributed 2d points within a circle, with one that generates points within a normal distribution from a central point.

Previously I'd been using this method to calculate the x and y values of a point when it was a uniform distribution, with boost being my stand in for C#'s random generation algorithms.

I'd really appreciate any help here, preferably using boost (getting new external libs approved for use here is a pain), as I said, my math skills are pretty horrendous, so even if someone could point me in the direction of some other post about this issue, with some layman's terms to get me situated there, that would be great.




Aucun commentaire:

Enregistrer un commentaire