class_docstr: A class to implement some FFT smoothers for Image objects.
  By default, this does a Gaussian kernel smooth. More choices
  would be better!
class_docstr_tok: ["A","class","to","implement","some","FFT","smoothers","for","Image","objects",".","By","default",",","this","does","a","Gaussian","kernel","smooth",".","More","choices","would","be","better","!"]
docstr: Parameters
  ----------
  coordmap : ``CoordinateMap``
  shape : sequence
  fwhm : float, optional
     fwhm for Gaussian kernel, default is 6.0
  scale : float, optional
     scaling to apply to data after smooth, default 1.0
  location : float
     offset to apply to data after smooth and scaling, default 0
  cov : None or array, optional
     Covariance matrix
docstr_tok: ["Parameters","--","--","--","--","--","coordmap",":","``","CoordinateMap","``","shape",":","sequence","fwhm",":","float",",","optional","fwhm","for","Gaussian","kernel",",","default","is","6.0","scale",":","float",",","optional","scaling","to","apply","to","data","after","smooth",",","default","1.0","location",":","float","offset","to","apply","to","data","after","smooth","and","scaling",",","default","0","cov",":","None","or","array",",","optional","Covariance","matrix"]
code: def __init__(
      self, coordmap, shape, fwhm=6.0, scale=1.0, location=0.0, cov=None
  ):
      """
      Parameters
      ----------
      coordmap : ``CoordinateMap``
      shape : sequence
      fwhm : float, optional
         fwhm for Gaussian kernel, default is 6.0
      scale : float, optional
         scaling to apply to data after smooth, default 1.0
      location : float
         offset to apply to data after smooth and scaling, default 0
      cov : None or array, optional
         Covariance matrix
      """
      self.coordmap = coordmap
      self.bshape = shape
      self.fwhm = fwhm
      self.scale = scale
      self.location = location
      self.cov = cov
      self._setup_kernel()
  
file_path: nipy/nipy/algorithms/kernel_smooth.py
imports: import gc
  import numpy
  import numpy.linalg
  from numpy import fft
  from nipy.core.api import AffineTransform, Image
  from nipy.core.reference.coordinate_map import product
  from nipy.utils import seq_prod
label_desc: Use image node_id 1 to create a new LinearFilter object  with example: obj = LinearFilter(coordmap, shape, fwhm, scale, location, cov)