BlackmanHarrisWindow - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

SignalProcessing

  

BlackmanHarrisWindow

  

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

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

BlackmanHarrisWindow(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 BlackmanHarrisWindow(A) command multiplies the Array A by the Blackman-Harris windowing function and returns the result in an Array having the same length.

• 

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

0.358750.48829cos2kπN+0.14128cos4kπN0.1168cos6kπ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[BlackmanHarrisWindow] 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)

BlackmanHarrisWindowa

−0.104607581243262,−0.0428699844130251,−0.0175815367732443,0.0258625708093711,−0.0452785802321650,0.0459340140332534,−0.0450920035375707,−0.0500095231958251,0.0494785482882989,−0.00297706236087119,−0.0124752535149666,0.0356349009354735,0.0425814475766572,0.0383082830320990,0.0966392041789186,0.0106642584948031,0.0153503536715659,0.0789387217910699,−0.0900715530551585,0.0819785398043280,−0.0757834096094065,−0.0255106657862097,−0.0293676100180955,−0.0719142887649478,0.00913398965597566,0.0685631597965507,0.0204457569503219,0.0719158960098494,−0.0431161383642465,0.0823946329965108,−0.0138883499134322,0.0234959140596246,−0.0567065789758936,0.0628717389644058,0.0398311839878600,0.00510189632099395,−0.0138962531620027,0.0470237608610367,0.0524932451380042,−0.0477722020254426,0.0431546255575388,−0.0540460545882222,−0.0674010996113362,0.0118737235189919,0.0162294019122261,−0.0510274423805707,0.0260703751084454,0.0537041183244799,−0.0266384223090209,−0.0321866331657259,−0.0204656444798335,−0.0319567037311457,0.0450584871746012,0.0346525216666664,−0.0433584140350641,−0.00583267817289400,0.0297510855980949,0.0264375222529976,−0.0426538647755958,0.0321213225190880,−0.0341519530881279,0.00168078800618909,0.0179753005882368,−0.00824732464832489,0.0131389803751495,0.00288328448006642,0.0300828567815027,−0.00308655564665509,0.0263610348962873,0.0141254578334352,0.0170635712591997,0.00340866017908874,0.000962723170064953,−0.0153814387274871,−0.0146035205379860,−0.00389500601692096,−0.00809423086984508,0.00851317772956955,0.00650917087133489,0.00368676027585279,0.00141420094927424,0.000204541381868544,−0.000695433998926797,0.00190546602135967,0.000897682143742824,0.00422994771140363,0.000395849297812101,−0.00258401373235060,0.0104822828130349,0.0138080285513073,0.00959614907749785,−0.000852843139071801,−0.0191065678037181,−0.0108494550947599,−0.0191256045284460,−0.000513272442264875,−0.0106674945974129,0.0286231501178242,0.0197521295616729,0.0226173369006425,,⋯ 924 Array entries not shown

(2)

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

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

−0.105041658156659,−0.104986638075555,−0.104894956101401,−0.104766639468574,−0.104601726290898,−0.104400265547355,−0.104162317063707,−0.103887951490062,−0.103577250274370,−0.103230305631874,−0.102847220510515,−0.102428108552314,−0.101973094050735,−0.101482311904058,−0.100955907564755,−0.100394036984921,−0.0997968665577407,−0.0991645730550520,−0.0984973435609921,−0.0977953754017764,−0.0970588760716227,−0.0962880631548497,−0.0954831642441801,−0.0946444168552746,−0.0937720683375296,−0.0928663757811698,−0.0919276059206695,−0.0909560350345364,−0.0899519488414962,−0.0889156423931116,−0.0878474199628786,−0.0867475949318361,−0.0856164896707334,−0.0844544354187953,−0.0832617721591292,−0.0820388484908206,−0.0807860214977606,−0.0795036566142538,−0.0781921274874556,−0.0768518158366875,−0.0754831113096809,−0.0740864113358021,−0.0726621209763109,−0.0712106527717063,−0.0697324265862153,−0.0682278694494801,−0.0666974153955004,−0.0651415052988905,−0.0635605867085086,−0.0619551136785188,−0.0603255465969470,−0.0586723520117927,−0.0569960024547585,−0.0552969762626628,−0.0535757573965974,−0.0518328352588981,−0.0500687045079932,−0.0482838648711966,−0.0464788209555128,−0.0446540820565241,−0.0428101619654266,−0.0409475787742872,−0.0390668546795897,−0.0371685157841433,−0.0352530918974236,−0.0333211163344194,−0.0313731257130579,−0.0294096597502808,−0.0274312610568472,−0.0254384749309358,−0.0234318491506225,−0.0214119337653075,−0.0193792808861695,−0.0173344444757209,−0.0152779801365419,−0.0132104448992704,−0.0111323970099233,−0.00904439571662868,−0.00694700105584424,−0.00484077363814157,−0.00272627443363378,−0.000604064557123940,0.00152529494694612,0.00366124331966948,0.00580322030289058,0.00795066635438636,0.0101030228629342,0.0122597323631865,0.0144202387502747,0.0165839874940634,0.0187504258529771,0.0209190030873193,0.0230891706720079,0.0252603825086481,0.0274320951368644,0.0296037679448139,0.0317748633788055,0.0339448471519456,0.0361131884517338,0.0382793601465342,,⋯ 924 Array entries not shown

(3)

u`~`logFFTc:

useplotsindisplayArraylistplotℜu,listplotℑuend use



Compatibility

• 

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

• 

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

See Also

SignalProcessing

 


Download Help Document