blackman static method
Returns a Blackman window.
This is a more elaborate kind of cosine window.
w[i] = 0.42 - 0.5 * cos(2πi / (size - 1)) + 0.08 * cos(4πi / (size - 1))
Implementation
static Float64List blackman(int size) {
final scale = 2 * math.pi / (size - 1);
return _makeWindow(size, (i) {
final t = i * scale;
return 0.42 - 0.5 * math.cos(t) + 0.08 * math.cos(2 * t);
});
}