inPlaceApplyWindowReal method

void inPlaceApplyWindowReal(
  1. List<double> realArray
)

Applies the window to the realArray.

This method modifies the input array, rather than allocating a new array.

Implementation

void inPlaceApplyWindowReal(List<double> realArray) {
  final a = realArray;
  if (a.length != length) {
    throw ArgumentError('Input data is the wrong length.', 'realArray');
  }
  for (int i = 0; i < a.length; ++i) {
    a[i] *= this[i];
  }
}