Close
Close window
BlackmanNuttallWindow - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

SignalProcessing

BlackmanNuttallWindow

multiply an array of samples by a Blackman-Nuttall windowing function

Calling Sequence

BlackmanNuttallWindow(A)

Parameters

A

-

Array of real or complex numeric values; the signal

Options

container : Array, predefined Array for holding results

inplace : truefalse, specifies that output should overwrite input

Description

The BlackmanNuttallWindow(A) command multiplies the Array A by the Blackman-Nuttall windowing function and returns the result in an Array having the same length.

The Blackman-Nuttall windowing function wk is defined as follows for a sample with N points.

wk=0.36358190.4891775cos2kπN+0.1365995cos4kπN0.0106411cos6kπN

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[BlackmanNuttallWindow] command is thread-safe as of Maple 18.

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

Examples

>

withSignalProcessing:

>

N1024:

>

aGenerateUniformN,1,1

a0.995867573674919,0.408337529411819,0.167610888327636,−0.246858837322246,0.432866472071836,−0.439979858216147,0.432901310269353,0.481379433115581,−0.477697063372826,0.0288390346482901,0.121298888322326,−0.347901581305424,−0.417575321932189,−0.377487291266245,−0.957241696004090,−0.106224023010499,−0.153815988427697,−0.796037529927613,0.914456672624718,−0.838266016849289,0.780798342992182,0.264941104331734,0.307568462467303,0.759836566745563,−0.0974062939840268,−0.738299079939469,−0.222411502459510,−0.790666567452535,0.479324116036899,−0.926660717719720,0.158096275557107,−0.270853780765762,0.662332445466727,−0.744445672422478,−0.478385013373665,−0.0621887851286065,0.172013089695077,−0.591466642712960,−0.671336703895487,0.621614486337707,−0.571712331523940,0.729500236463803,0.927596094164525,−0.166740832401267,−0.232738235376916,0.747897344476724,−0.390875342827815,−0.824422433563177,0.419102838543417,0.519515359664100,0.339253361707115,0.544663757892689,−0.790555218506194,−0.626662143370472,0.809291667387941,0.112528634479680,−0.594205220415586,−0.547543621943336,0.917705395677354,−0.719336755784793,0.797753419286497,−0.0410473111353908,−0.460116401375612,0.221890072130439,−0.372704340753435,−0.0865302486005877,−0.958873433799482,0.104950403128197,−0.960985163666299,−0.555279271724625,−0.728221283327371,−0.159194410764132,−0.0496779615156940,0.887333813842765,0.955854138274286,0.294842910032204,0.727087873584634,−0.941265508088898,−0.936975655971576,−0.761605592710214,−0.518730224597855,−0.338608480594198,−0.455934113149177,0.520442334745367,0.154686897427569,0.532024301217215,0.0391812730885115,−0.210772442317735,0.726914650621525,0.832612093819426,0.511782993769936,−0.0407688232327275,−0.827512086732588,−0.429504782480848,−0.697198097083888,−0.0173380781534870,−0.335721179041430,0.843225187896704,0.546950585326249,0.590849398058455,,⋯ 924 Array entries not shown

(1)
>

BlackmanNuttallWindowa

0.000362023489807624,0.000149330473447543,0.0000619045920201673,−0.0000924297643071291,0.000164910394828759,−0.000171147101278572,0.000172501146158800,0.000197098706518367,−0.000201542177040750,0.0000125698165424990,0.0000547457399657758,−0.000162929395200140,−0.000203295734375674,−0.000191358552209814,−0.000505972653955434,−0.0000586148907593788,−0.0000886961712506729,−0.000480085602539204,0.000577198794760169,−0.000554057758247677,0.000540631503412311,0.000192233938897032,0.000233897672968295,0.000605695145544863,−0.0000813922761309970,−0.000646656418032697,−0.000204174114165902,−0.000760630675065875,0.000483128368984907,−0.000978377184380264,0.000174801531355299,−0.000313523922414710,0.000802395590051366,−0.000943580280762415,−0.000634171862473481,−0.0000861926331349188,0.000249166360357052,−0.000895088982288556,−0.00106101250709283,0.00102560507221299,−0.000984350065306247,0.00131022034457262,0.00173723640918624,−0.000325505272356314,−0.000473408278782668,0.00158452644894234,−0.000862231906324686,−0.00189279957074635,0.00100112218029171,0.00129068789210740,0.000876294826570262,0.00146220055054408,−0.00220502996347092,−0.00181540430663544,0.00243421402532950,0.000351308854440653,−0.00192484527581366,−0.00183981751497237,0.00319758199845719,−0.00259825101809235,0.00298619640681193,−0.000159187121142095,−0.00184815923349548,0.000922858570984272,−0.00160459952723885,−0.000385528549212969,−0.00441997487007803,0.000500377902258530,−0.00473776765256762,−0.00283009564928785,−0.00383598591762242,−0.000866480302650362,−0.000279323160625508,0.00515275306314300,0.00573127920390090,0.00182498148184430,0.00464477108577300,−0.00620443990753424,−0.00637142663704195,−0.00534149533055377,−0.00375151328427291,−0.00252466779396056,−0.00350397185103976,0.00412187883360681,0.00126227355774625,0.00447222149899446,0.000339217314251676,−0.00187904800445408,0.00667190960834217,0.00786631556107838,0.00497618763800066,−0.000407889681731799,−0.00851755548178929,−0.00454734765893108,−0.00759137260445140,−0.000194117380051966,−0.00386427367356843,0.00997667005125932,0.00665075803075200,0.00738260867368642,,⋯ 924 Array entries not shown

(2)
>

cArray1..N,datatype=float8,order=C_order:

>

BlackmanNuttallWindowArray1..N,fill=1,datatype=float8,order=C_order,container=c

0.000363525733117001,0.000365703523902500,0.000369335146647274,0.000374423558458523,0.000380972899193244,0.000388988491365197,0.000398476840024968,0.000409445632611900,0.000421903738779013,0.000435861210189443,0.000451329280284093,0.000468320364020145,0.000486848057579150,0.000506927138044622,0.000528573563048461,0.000551804470384118,0.000576638177586887,0.000603094181480187,0.000631193157685060,0.000660956960095032,0.000692408620310973,0.000725572347038813,0.000760473525445284,0.000797138716473071,0.000835595656111751,0.000875873254624284,0.000918001595727143,0.000962011935722243,0.00100793670257917,0.00105580949496576,0.00110566508122551,0.00115753939829937,0.00121146955059093,0.00126749380877175,0.00132565160852590,0.00138598354923114,0.00144853139257449,0.00151333806110000,0.00158044763668696,0.00164990535895556,0.00172175762359785,0.00179605198063241,0.00187283713257865,0.00195216293255017,0.00203408038226290,0.00211864162995655,0.00220589996822723,0.00229590983176624,0.00238872679500595,0.00248440756966631,0.00258301000220239,0.00268459307114787,0.00278921688435308,0.00289694267611471,0.00300783280419300,0.00312195074671498,0.00323936109896078,0.00336012957002860,0.00348432297937735,0.00361200925324283,0.00374325742092432,0.00387813761093950,0.00401672104704381,0.00415908004411197,0.00430528800387754,0.00445541941052912,0.00460954982615811,0.00476775588605712,0.00493011529386400,0.00509670681655006,0.00526761027924799,0.00544290655991794,0.00562267758384703,0.00580700631798088,0.00599597676508284,0.00618967395771860,0.00638818395206304,0.00659159382152592,0.00679999165019420,0.00701346652608705,0.00723210853422175,0.00745600874948617,0.00768525922931610,0.00791995300617404,0.00816018407982677,0.00840604740941813,0.00865763890533561,0.00891505542086690,0.00917839474364366,0.00944775558687045,0.00972323758033591,0.0100049412612028,0.0102929680645761,0.0105874203138445,0.0108884012107939,0.0111960148254913,0.0115103660859345,0.0118315607674678,0.0121597054819585,0.0124949076667351,,⋯ 924 Array entries not shown

(3)
>

u`~`logFFTc:

>

useplotsindisplayArraylistplotℜu,listplotℑuend use



Compatibility

The SignalProcessing[BlackmanNuttallWindow] command was introduced in Maple 18.

For more information on Maple 18 changes, see Updates in Maple 18 .

See Also


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /