question: private void gauss ( int size ) { int start = ( windowFunction . length - size ) / 2 ; int stop = ( windowFunction . length + size ) / 2 ; double delta = 5.0 / size ; double x = ( 1 - size ) / 2.0 * delta ; double c = - Math . PI * Math . exp ( 1.0 ) / 10.0 ; double sum = 0 ; for ( int i = start ; i < stop ; i ++ ) { windowFunction [ i ] = Math . exp ( c * x * x ) ; x += delta ; sum += windowFunction [ i ] ; } for ( int i = start ; i < stop ; i ++ ) windowFunction [ i ] /= sum ; }
target:  Fill an array with the values of a Gaussian window function