While initialising the particles, i need to add some gaussian noise to it. For example
particle.x(i) = rect(1)+mgd(1,1,0,10);
here rect(1) gives the position, and mgd function is providing the noise
The details about the mgd function are:
- Function
x=mgd(N,d,rmean,covariance) - Generates a Multivariate Gaussian Distribution
- Usage
x=mgd(N,d,mu,sigmax) - This function generates
Nsamples from a d-dimension Gaussian distribution
My value of N and d are always 1, How can I implement the mgd function in opencv c++?