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

Online Help

SignalProcessing

  

TukeyWindow

  

multiply an array of samples by a Tukey windowing function

  

TaperedCosineWindow

  

multiply an array of samples by a tapered cosine windowing function

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

TukeyWindow( A, alpha )

TaperedCosineWindow( A, alpha )

Parameters

A

-

Array of real or complex numeric values; the signal

alpha

-

real numeric constant

Options

• 

container : Array, predefined Array for holding results

• 

inplace : truefalse, specifies that output should overwrite input

Description

• 

The TukeyWindow( A, alpha ) command multiplies the Array A by the Tukey windowing function, with parameter α, and returns the result in an Array having the same length.

• 

The command TaperedCosineWindow( A, alpha ) is provided as an alias.

• 

The Tukey windowing function wk with parameter α is defined as follows for a sample with N points.

wk=12cos2πkαN2k<αN212cos2πα2πkαN2N12αN<k1otherwise

• 

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[TukeyWindow] and SignalProcessing[TaperedCosineWindow] commands are thread-safe as of Maple 18.

• 

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

Examples

withSignalProcessing&colon;

N1024&colon;

aGenerateUniformN&comma;1&comma;1

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

(1)

TukeyWindowa&comma;1.23

6.19569885194813×10−6&comma;0.0000101616748624124&comma;9.38482634219227×10−6&comma;−0.0000245721897783240&comma;0.0000673226264017665&comma;−0.0000985354449740745&comma;0.000131956399693844&comma;0.000191645873525125&comma;−0.000240687893722512&comma;0.0000179382578327418&comma;0.0000912899185922948&comma;−0.000311586625433372&comma;−0.000438893273186516&comma;−0.000460120393433886&comma;−0.00133934074465848&comma;−0.000169091486933355&comma;−0.000276394012869475&comma;−0.00160352721462066&comma;0.00205227137667841&comma;−0.00208435253049647&comma;0.00214027639612802&comma;0.000796981716221277&comma;0.00101113836898569&comma;0.00271965271401682&comma;−0.000378262833898049&comma;−0.00310069973732291&comma;−0.00100720463010416&comma;−0.00385028456720412&comma;0.00250355601182225&comma;−0.00517895505313336&comma;0.000943341510616643&comma;−0.00172187655921180&comma;0.00447726188024223&comma;−0.00534120270259177&comma;−0.00363663484602305&comma;−0.000500079597759769&comma;0.00146090247120845&comma;−0.00529768511386608&comma;−0.00633269986026224&comma;0.00616721674241195&comma;−0.00595827266384165&comma;0.00797671933308303&comma;0.0106296631939106&comma;−0.00200028824228515&comma;−0.00291983160740923&comma;0.00980258611846653&comma;−0.00534728298151320&comma;−0.0117610422806826&comma;0.00622929431083408&comma;0.00803850403752544&comma;0.00546022179439297&comma;0.00911146201663327&comma;−0.0137354273721348&comma;−0.0113001113725544&comma;0.0151353999297981&comma;0.00218123499454627&comma;−0.0119301971484832&comma;−0.0113797426704384&comma;0.0197314732587022&comma;−0.0159911472821710&comma;0.0183258476294106&comma;−0.000973851788010436&comma;−0.0112683628679920&comma;0.00560654427793544&comma;−0.00971118476909908&comma;−0.00232390666190572&comma;−0.0265310076223231&comma;0.00299035653719536&comma;−0.0281846256424160&comma;−0.0167563532503936&comma;−0.0226008502355513&comma;−0.00507935369095892&comma;−0.00162889936715212&comma;0.0298883917243637&comma;0.0330621979104780&comma;0.0104688535272641&comma;0.0264918000098656&comma;−0.0351807033055060&comma;−0.0359123556707615&comma;−0.0299245703134200&comma;−0.0208873825612516&comma;−0.0139685316028839&comma;−0.0192634674692474&comma;0.0225142008470345&comma;0.00684958195545908&comma;0.0241071893800895&comma;0.00181626393153557&comma;−0.00999270271187744&comma;0.0352376790825127&comma;0.0412581586178004&comma;0.0259171456712886&comma;−0.00210939043543854&comma;−0.0437347019792165&comma;−0.0231814504268180&comma;−0.0384192995510653&comma;−0.000975251853249991&comma;−0.0192717463488594&comma;0.0493876387900345&comma;0.0326785574362643&comma;0.0360032101372126&comma;&comma;⋯ 924 Array entries not shown

(2)

cArray1..N&comma;datatype=float8&comma;order=C_order&colon;

TukeyWindowArray1..N&comma;fill=1&comma;datatype=float8&comma;order=C_order&comma;0.72&comma;container=c

0.0000181565032162379&comma;0.0000726246942305830&comma;0.000163400617235465&comma;0.000290477679537549&comma;0.000453846652036405&comma;0.000653495669895032&comma;0.000889410233401222&comma;0.00116157320902083&comma;0.00146996483064221&comma;0.00181456270101138&comma;0.00219534179335895&comma;0.00261227445321777&comma;0.00306533040043100&comma;0.00355447673135167&comma;0.00407967792123204&comma;0.00464089582680377&comma;0.00523808968904793&comma;0.00587121613615549&comma;0.00654022918667690&comma;0.00724508025286180&comma;0.00798571814418758&comma;0.00876208907107717&comma;0.00957413664880569&comma;0.0104218019015953&comma;0.0113050232668984&comma;0.0122237365998688&comma;0.0131778751780202&comma;0.0141673697060719&comma;0.0151921483209815&comma;0.0162521365971643&comma;0.0173472575518980&comma;0.0184774316509140&comma;0.0196425768141738&comma;0.0208426084218297&comma;0.0220774393203707&comma;0.0233469798289521&comma;0.0246511377459087&comma;0.0259898183554507&comma;0.0273629244345429&comma;0.0287703562599657&comma;0.0302120116155570&comma;0.0316877857996367&comma;0.0331975716326097&comma;0.0347412594647507&comma;0.0363187371841674&comma;0.0379298902249427&comma;0.0395746015754550&comma;0.0412527517868767&comma;0.0429642189818489&comma;0.0447088788633331&comma;0.0464866047236384&comma;0.0482972674536234&comma;0.0501407355520735&comma;0.0520168751352508&comma;0.0539255499466179&comma;0.0558666213667334&comma;0.0578399484233192&comma;0.0598453878014993&comma;0.0618827938542075&comma;0.0639520186127656&comma;0.0660529117976297&comma;0.0681853208293043&comma;0.0703490908394238&comma;0.0725440646819993&comma;0.0747700829448325&comma;0.0770269839610924&comma;0.0793146038210567&comma;0.0816327763840159&comma;0.0839813332903399&comma;0.0863601039737043&comma;0.0887689156734791&comma;0.0912075934472746&comma;0.0936759601836475&comma;0.0961738366149636&comma;0.0987010413304170&comma;0.101257390789205&comma;0.103842699333860&comma;0.106456779203730&comma;0.109099440548616&comma;0.111770491442561&comma;0.114469737897790&comma;0.117196983878794&comma;0.119952031316572&comma;0.122734680123012&comma;0.125544728205427&comma;0.128381971481230&comma;0.131246203892752&comma;0.134137217422214&comma;0.137054802106831&comma;0.139998746054059&comma;0.142968835456988&comma;0.145964854609866&comma;0.148986585923768&comma;0.152033809942396&comma;0.155106305358020&comma;0.158203849027548&comma;0.161326215988734&comma;0.164473179476515&comma;0.167644510939479&comma;0.170839980056468&comma;&comma;⋯ 924 Array entries not shown

(3)

u`~`logFFTc&colon;

useplotsindisplayArraylistplot&real;u&comma;listplot&Im;uend use



Compatibility

• 

The SignalProcessing[TukeyWindow] and SignalProcessing[TaperedCosineWindow] commands were introduced in Maple 18.

• 

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

See Also

SignalProcessing

 


Download Help Document