swgmm icon indicating copy to clipboard operation
swgmm copied to clipboard

Typo in gauss2D function

Open ttgump opened this issue 5 years ago • 0 comments

Hi, I am reading your code. In line 53 of utils.py, it says:

P = np.linalg.det(Sigma) ** -.5 ** (2 * np.pi) ** (-X.shape[1]/2.)

I guess it should be

P = np.linalg.det(Sigma) ** -.5 * (2 * np.pi) ** (-X.shape[1]/2.)

Since the function "gauss2D" is supposed to calculate the probability of the Gaussian distribution. Thanks. Best, Tian Tian

ttgump avatar Mar 02 '19 22:03 ttgump