src/Level1/WindowFct.cc
// Input	size	: Number of points
// 		offset	: Zero offset (in points)
// 		sigma	: Width parameter
// Return	BLK	: 1D-data block containing a
//			  discrete Gaussian function
Input  size    : Number of points
offset  : Zero offset (in points)
sigma   : Width parameter
Return BLK     : 1D-data block containing a
discrete Gaussian function
Input size : Number of points offset : Zero offset ( in points ) sigma : Width parameter Return BLK : 1D - data block containing a discrete Gaussian function
row_vector Gaussian (int size, int offset, double sigma)
  {
  row_vector BLK(size);				
  double x = 0.;
  double denom = 2*sigma*sigma;
  for (int i=0; i<size; i++)
    {
    x = double(i-offset);			
    BLK.put(exp(-x*x/denom),i);		
    }
  return BLK;
  }
row_vector Gaussian ( int size , int offset , double sigma ) { row_vector BLK ( size ) ; double x = 0. ; double denom = 2 * sigma * sigma ; for ( int i = 0 ; i < size ; i ++ ) { x = double ( i - offset ) ; BLK . put ( exp ( - x * x / denom ) , i ) ; } return BLK ; }
Input  size    : Number of points
offset  : Zero offset (in points)
sigma   : Width parameter
Return BLK     : 1D-data block containing a
discrete Gaussian function
Input size : Number of points offset : Zero offset ( in points ) sigma : Width parameter Return BLK : 1D - data block containing a discrete Gaussian function
// Assume BLK is zeroed // Maximum=1 at point offset // 2.35*sigma is half-height linewidth