runAndCopy method

List<Float64x2List> runAndCopy(
  1. List<double> input, [
  2. int chunkStride = 0
])

Runs STFT on input.

This method is the same as run, except that it copies all the results to a List<Float64x2List> and returns it. It's a convenience method, but isn't as efficient as run (this method allocated a lot of arrays). See run for more details.

Implementation

List<Float64x2List> runAndCopy(List<double> input, [int chunkStride = 0]) {
  final o = <Float64x2List>[];
  run(input, (Float64x2List f) => o.add(f.sublist(0)), chunkStride);
  return o;
}