Investment Studio > Expressions > Functions > DSP > BLACKMAN
| Vector form: | float array[1][length] blackman(integer length) Returns a row vector (one row, length columns) containing the values of a Blackman window starting at position 1 and ending at position length > 1. |
| Scalar form: | float blackman(integer length, integer
position) Returns the value in position >= 1 of a Blackman window starting at position 1 and ending at position length > 1. |
The Blackman window function is defined as
omega = 2.0 * PI / (length - 1)
n = position - 1
blackman[n] = 0.42 - 0.5 * cos(n * omega) + 0.08 * cos(n * 2.0 * omega)
Example
The graph source
=blackman(100, x)
can be used to create the following graph:
