Close
Close window
BartlettHannWindow - 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

BartlettHannWindow

multiply an array of samples by a Bartlett-Hann windowing function

Calling Sequence

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

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

wk=0.620.482kN2N0.38cos2kπ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[BartlettHannWindow] 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)
>

BartlettHannWindowa

0.000473936756905611,0.000394500318516386,0.000246493419279901,−0.000491113041248308,0.00109193656066439,−0.00135073546170486,0.00157217351279680,0.00202551306570543,−0.00229200454590087,0.000155806261684415,0.000730399397179943,−0.00231515506925422,−0.00304915014606898,−0.00300619832388187,−0.00827021646974521,−0.000991049300443735,−0.00154342240938104,−0.00855967326790281,0.0105031835013950,−0.0102543211277680,0.0101457277167731,0.00364810614884332,0.00447792926012196,0.0116733131099572,−0.00157611899542693,−0.0125606535281146,−0.00397208551038086,−0.0148008795626817,0.00939183593652266,−0.0189802491786380,0.00338088564978245,−0.00604047090267405,0.0153874656980594,−0.0179983879289446,−0.0120244731938655,−0.00162363665455895,0.00466065760403873,−0.0166174435107449,−0.0195424580016505,0.0187342943383015,−0.0178261929853204,0.0235164913367853,0.0308948514488609,−0.00573423306687636,−0.00825932521436305,0.0273722220847369,−0.0147453538931820,−0.0320392589762137,0.0167704445294270,0.0213942683555379,0.0143710919909821,0.0237224440151727,−0.0353862203412591,−0.0288150009304807,0.0382113016366963,0.00545350393416931,−0.0295464059822771,−0.0279239994862892,0.0479836180650402,−0.0385476284873428,0.0437985013783376,−0.00230809808061971,−0.0264895260628159,0.0130750450538035,−0.0224716175108567,−0.00533668700497498,−0.0604744284380274,0.00676670797547655,−0.0633245573435491,−0.0373862128639262,−0.0500833330444281,−0.0111808711699207,−0.00356221725446542,0.0649450293387065,0.0713918615208814,0.0224669606203344,0.0565116217934435,−0.0746041810702107,−0.0757154591923489,−0.0627333914073059,−0.0435443439054414,−0.0289614759766922,−0.0397256114135602,0.0461850642084068,0.0139784635087334,0.0489477331938580,0.00366939727336115,−0.0200893808185387,0.0705010636386078,0.0821559390034986,0.0513679246946503,−0.00416170778046088,−0.0858981201200170,−0.0453286942923142,−0.0747977527124788,−0.00189057086978010,−0.0372018120213698,0.0949417299681497,0.0625641975825292,0.0686524288158688,,⋯ 924 Array entries not shown

(2)
>

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

>

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

0.000475903392613442,0.000966113301132610,0.00147062891760391,0.00198944889547226,0.00252257134963130,0.00306999385649442,0.00363171345408630,0.00420772664215402,0.00479802938229923,0.00540261709813000,0.00602148467543301,0.00665462646236648,0.00730203626967241,0.00796370737091007,0.00863963250270899,0.00932980386504267,0.0100342131215218,0.0107528513997087,0.0114857092914509,0.0122327768532356,0.0129940436065638,0.0137694985383450,0.0145591301013120,0.0153629262144553,0.0161808742634782,0.0170129611012713,0.0178591730484082,0.0187194958936597,0.0195939148945297,0.0204824147778095,0.0213849797401534,0.0223015934486731,0.0232322390415531,0.0241768991286854,0.0251355557923242,0.0261081905877605,0.0270947845440166,0.0280953181645603,0.0291097714280387,0.0301381237890323,0.0311803541788287,0.0322364410062151,0.0333063621582921,0.0343900950013057,0.0354876163814992,0.0365989026259856,0.0377239295436385,0.0388626724260027,0.0400151060482251,0.0411812046700036,0.0423609420365568,0.0435542913796121,0.0447612254184138,0.0459817163607500,0.0472157359039994,0.0484632552361958,0.0497242450371143,0.0509986754793740,0.0522865162295616,0.0535877364493734,0.0549023047967762,0.0562301894271870,0.0575713579946728,0.0589257776531676,0.0602934150577091,0.0616742363656949,0.0630682072381554,0.0644752928410479,0.0658954578465673,0.0673286664344763,0.0687748822934542,0.0702340686224637,0.0717061881321371,0.0731912030461793,0.0746890751027906,0.0761997655561074,0.0777232351776604,0.0792594442578520,0.0808083526074511,0.0823699195591064,0.0839441039688774,0.0855308642177832,0.0871301582133699,0.0887419433912949,0.0903661767169301,0.0920028146869810,0.0936518133311259,0.0953131282136703,0.0969867144352203,0.0986725266343733,0.100370518989425,0.102080645220096,0.103802858589273,0.105537111904768,0.107283357521096,0.109041547341271,0.110811632818610,0.112593564958570,0.114387294320584,0.116192771019929,,⋯ 924 Array entries not shown

(3)
>

u`~`logFFTc:

>

useplotsindisplayArraylistplotℜu,listplotℑuend use



Compatibility

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

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

See Also


Download Help Document

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