windowing.js
function window(data_array, windowing_function, alpha) {
	var datapoints = data_array.length;

	/* For each item in the array */
	for (var n=0; n<datapoints; ++n) {
		/* Apply the windowing function */
		data_array[n] *= windowing_function(n, datapoints, alpha);
	}

	return data_array;
}
function window(data_array, windowing_function, alpha) {
	var datapoints = data_array.length;

	/* For each item in the array */
	for (var n=0; n<datapoints; ++n) {
		/* Apply the windowing function */
		data_array[n] *= windowing_function(n, datapoints, alpha);
	}

	return data_array;
}
function window ( data_array , windowing_function , alpha ) { var datapoints = data_array . length ; /* For each item in the array */ for ( var n = 0 ; n < datapoints ; ++ n ) { /* Apply the windowing function */ data_array [ n ] *= windowing_function ( n , datapoints , alpha ) ; } return data_array ; }
Applies a Windowing Function to an array.
Applies a Windowing Function to an array .