Home > Applications > Horace > @d1d > smooth.m

iFit/smooth

PURPOSE ^

Smooths a one dimensional dataset

SYNOPSIS ^

function wout = smooth (win,varargin)

DESCRIPTION ^

 Smooths a one dimensional dataset

 Syntax:
   >> wout = smooth (win, width, shape)

 Input:
 ------
   win     Input dataset structure
   width   Vector that sets the extent of the smoothing along each dimension.
          The interpretation of width depends on the argument 'shape' described
          below.
           If width is scalar, then the value is applied to all dimensions

   shape   [Optional] Shape of smoothing function [Default: 'hat']
               'hat'           hat function
                                   - width gives FWHH along each dimension in pixels
                                   - width = 1,3,5,...;  n=0 or 1 => no smoothing
               'gaussian'      Gaussian
                                   - width gives FWHH along each dimension in pixels
                                   - elements where more than 2% of peak intensity
                                     are retained

 Output:
 -------
   wout    Smoothed data structure

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1