class_docstr: Use Parzen windowing to estimate the distribution model
class_docstr_tok: ["Use","Parzen","windowing","to","estimate","the","distribution","model"]
code: def loss(self, H):
      if not hasattr(self, "sigma"):
          self.sigma = SIGMA_FACTOR * np.array(H.shape)
      npts = nonzero(self.npoints(H))
      Hs = H / npts
      gaussian_filter(Hs, sigma=self.sigma, mode="constant", output=Hs)
      return dist2loss(Hs)
  
imports: import numpy
  from scipy.ndimage import gaussian_filter
  from ._registration import _L1_moments
label_desc: Use image node_id 1 for calling the ParzenMutualInformation obj's underlying member method code with example usage: obj.loss(H) and returns: dist2loss