private void hamming(int size){
  int start=(windowFunction.length - size) / 2;
  int stop=(windowFunction.length + size) / 2;
  double scale=1.0 / (double)size / 0.54;
  double factor=twoPI / (double)size;
  for (int i=0; start < stop; start++, i++)   windowFunction[i]=scale * (25.0 / 46.0 - 21.0 / 46.0 * Math.cos(factor * i));
}

private void hamming ( int size ) { int start = ( windowFunction . length - size ) / 2 ; int stop = ( windowFunction . length + size ) / 2 ; double scale = 1.0 / ( double ) size / 0.54 ; double factor = twoPI / ( double ) size ; for ( int i = 0 ; start < stop ; start ++ , i ++ ) windowFunction [ i ] = scale * ( 25.0 / 46.0 - 21.0 / 46.0 * Math . cos ( factor * i ) ) ; }
fill an array with the values of a standard hamming window function
