Skip to content

Commit

Permalink
Errata in docs and formula
Browse files Browse the repository at this point in the history
  • Loading branch information
javicarron committed Feb 20, 2024
1 parent 19a4e2d commit 3f7ca76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynkowski/theory/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def maxima_dist(self, us):
assert κ <= (self.dim + 2.)/self.dim, '`0.5*mu/sqrt(nu)` must be $≤ (dim+2)/dim$'
if self._warn_non_euclidean:
warnings.warn('If the ambient space is not euclidean, this function is an approximation. You can use `SphericalGaussian` or `EuclideanGaussian` instead.')
return np.real(np.sqrt(1./(1.-κ**2.+ 0.j))) * norm.pdf(us) * egoe(self.dim, 1./(1.-κ**2.), κ*us/np.sqrt(2.)) / egoe(self.dim, 1., 0.)
return np.real(np.sqrt(1./(1.-κ**2.+ 0.j)) * norm.pdf(us) * egoe(self.dim, 1./(1.-κ**2.), κ*us/np.sqrt(2.)) / egoe(self.dim, 1., 0.))

def minima_total(self):
"""Compute the expected values of local minima of the field.
Expand Down

0 comments on commit 3f7ca76

Please sign in to comment.