Skip to content

Commit

Permalink
Redefine MF using LKC in the theory
Browse files Browse the repository at this point in the history
  • Loading branch information
javicarron committed Feb 20, 2024
1 parent 1fba36e commit aa90938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynkowski/theory/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def MF(self, j, us):
Expected value of MFs evaluated at the thresholds.
"""
us /= self.sigma
return 1./comb(self.dim,j)*LKC(self.dim-j, us, self.mu, dim=self.dim, lkc_ambient=self.lkc_ambient)/self.lkc_ambient[-1]
return 1./comb(self.dim,j)*self.LKC(self.dim-j, us)

def V0(self, us):
"""Compute the expected values of the first Minkowski Functionals of the excursion sets at thresholds `us`, $V_0(A_u(f))$.
Expand Down Expand Up @@ -443,6 +442,7 @@ def maxima_dist(self, us):
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.)




__all__ = ["SphericalGaussian", "EuclideanGaussian", "Gaussian"]

Expand Down

0 comments on commit aa90938

Please sign in to comment.