multiply an array of samples by a Hamming windowing function - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Signal Processing : Windowing Functions : SignalProcessing/HammingWindow

SignalProcessing[HammingWindow] - multiply an array of samples by a Hamming windowing function

Calling Sequence

HammingWindow(A)

Parameters

A

-

Array of real or complex numeric values; the signal

Description

• 

The HammingWindow(A) command multiplies the Array A by a Hamming windowing function and returns the result in an Array having the same length. The length of A must be at least 3.

• 

The Hamming windowing function w is defined as follows for a sample with N points.

wk=0.540.46cos2πkN1

• 

For an Array with complex values, the real and imaginary parts are multiplied by the same windowing function.

• 

Before the code performing the computation runs, A is converted to datatype float[8] or complex[8] if it does not have one of those datatypes already. For this reason, it is most efficient if A has one of these datatypes beforehand. This does not apply if inplace is true.

• 

If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of the same size and datatype as A.

• 

If the inplace or inplace=true option is provided, then A is overwritten with the results. In this case, the container option is ignored.

Thread Safety

• 

The SignalProcessing[HammingWindow] command is thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

a:=GenerateUniform10,1,1

a:=0.7852184921503080.5884139649570000.9931658226996680.9215782885439710.03878017095848920.01360579254105690.2107569728977980.7496002158150090.1389663578011100.212285134010017

(1)

HammingWindowa

0.06281747937202460.1103979669466790.4569772840506980.7096152821788580.03770435493953800.01322834888352730.1622828691313050.3449074292707980.02607280637254830.0169828107208014

(2)

c:=Array1..10,'datatype'='float'8,'order'='C_order':

HammingWindowa,'container'=c

0.06281747937202460.1103979669466790.4569772840506980.7096152821788580.03770435493953800.01322834888352730.1622828691313050.3449074292707980.02607280637254830.0169828107208014

(3)

c

0.06281747937202460.1103979669466790.4569772840506980.7096152821788580.03770435493953800.01322834888352730.1622828691313050.3449074292707980.02607280637254830.0169828107208014

(4)

a:=GenerateTone100,1,1π,π:

useplotsindisplayArraylistplota,listplotHammingWindowaend use

See Also

SignalProcessing[BartlettWindow], SignalProcessing[BlackmanWindow], SignalProcessing[HannWindow], SignalProcessing[KaiserWindow]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam