SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

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.7852184921503080.5884139649570000.9931658226996680.9215782885439710.03878017095848920.01360579254105690.2107569728977980.7496002158150090.1389663578011100.2122851340100170.7272120071575060.6092715314589450.7465088213793940.6811210685409620.8156772237271080.9205804541707050.3577318815514450.3158506918698550.1208321279846130.02355983620509510.5287123303860430.5027683069929490.7161679328419280.3879188126884410.9278261978179230.5356052340939650.8673904230818170.3569681062363090.6839167219586680.3242226522415880.05361050972715030.4698224249295900.7513776230625820.4843324692919860.6747855837456890.9363737516105190.7096950048580780.3153716786764570.7864264384843420.8770794854499410.9409014326520280.6518380991183230.4662027498707180.7281119446270180.6936769373714930.4467050759121780.4022120791487400.4650643980130560.1499599744565790.8932117177173510.5338573986664420.7853640178218500.7941035730764280.5118052563630050.6997805722057830.3901546578854330.3068011570721870.3800433110445740.2502235076390210.1123871579766280.2137124366126960.4621567274443810.7487089075148120.1515861186198890.1081398404203360.1682428801432250.5252014789730320.4807038540020590.8934478010050970.7059151721186950.9224037360399980.1509070000611250.5529286991804850.6300234016962360.4763040947727870.5200893273577100.3833313258364800.8538441974669710.5616843225434430.3928882414475090.8057071715593350.8304758411832170.9583636238239720.2670847913250330.9344543442130100.6007802556268880.4997545736841870.6631517456844460.4810677021741870.7564871408976630.8004443566314890.5107705770060430.2921514352783570.06741250492632400.3057767823338510.4690373712219310.6499663875438280.6481784037314370.8709209426306200.361100737471134...... 924 Array entries not shown

(1)

TukeyWindowa&comma;1.23

0.000004885164894355900.00001464296315111830.00005560908881299750.00009173338433950720.000006031381799424130.000003047077717815360.00006424265922563840.0002984294265018940.00007001826580485690.0001320441378975080.0005473020062338790.0005456740373170460.0007846194036605830.0008302205167806140.001141268443265720.001465415387460170.0006428132165196130.0006362453541808930.0002711777660653940.00005858164738294660.001449273722496130.001512400837837500.002354418491819930.001388462332452570.003603074838357080.002249428522652490.003928032680751540.001738316563521900.003572162892621040.001812027326785580.0003198874802883660.002986763626452460.005079193103750970.003474958603113760.005129652265103070.007529676099795620.006027420286673290.002824740613935240.007418338023525730.008701758736288990.009805888340026600.007127522799007640.005342387966460880.008734715671802870.008702565969824380.005854901088396010.005502372675215080.006634513843384620.002228915506709020.01382073862816750.008592338742432310.01313804033024010.01379707792525130.009228986399042200.01308731975163220.007562688350391460.006159821831746990.007898539787495120.005380025521190070.002498412018259980.004909363539146200.01096471712551990.01833606371594550.003830159131514370.002817691817325820.004518428599318640.01453176608165650.01369671644342500.02620382993874470.02130200890102600.02862743670399040.004814930524713600.01813007580616620.02122131032498890.01647496162477260.01846657594244490.01396686314064160.03191324777341820.02152820837693440.01543713953658610.03244290216123530.03425941374132890.04049139109975470.01155401902118920.04137791707483690.02722267265814760.02316632756551930.03143996518054120.02332008206421730.03748596337137890.04053521364546340.02642741399940790.01544044632042730.003638421980008780.01684991660961410.02638294518448090.03731068558675380.03796376262767760.05203475562463090.0220035524697098...... 924 row vector entries not shown

(2)

cArray1..N&comma;&apos;datatype&apos;&equals;&apos;float&apos;8&comma;&apos;order&apos;&equals;&apos;C_order&apos;&colon;

TukeyWindowArray1..N&comma;&apos;fill&apos;&equals;1&comma;&apos;datatype&apos;&equals;&apos;float&apos;8&comma;&apos;order&apos;&equals;&apos;C_order&apos;&comma;0.72&comma;&apos;container&apos;&equals;c

0.00001815650321623790.00007262469423058300.0001634006172354650.0002904776795375490.0004538466520364050.0006534956698950320.0008894102334012220.001161573209020830.001469964830642210.001814562701011380.002195341793358950.002612274453217770.003065330400431000.003554476731351670.004079677921232040.004640895826803770.005238089689047930.005871216136155490.006540229186676900.007245080252861800.007985718144187580.008762089071077170.009574136648805690.01042180190159530.01130502326689840.01222373659986880.01317787517802020.01416736970607190.01519214832098150.01625213659716430.01734725755189800.01847743165091400.01964257681417380.02084260842182970.02207743932037070.02334697982895210.02465113774590870.02598981835545070.02736292443454290.02877035625996570.03021201161555700.03168778579963670.03319757163260970.03474125946475070.03631873718416740.03792989022494270.03957460157545500.04125275178687670.04296421898184890.04470887886333310.04648660472363840.04829726745362340.05014073555207350.05201687513525080.05392554994661790.05586662136673340.05783994842331920.05984538780149930.06188279385420750.06395201861276560.06605291179762970.06818532082930430.07034909083942380.07254406468199930.07477008294483250.07702698396109240.07931460382105670.08163277638401590.08398133329033990.08636010397370430.08876891567347910.09120759344727460.09367596018364750.09617383661496360.09870104133041700.1012573907892050.1038426993338600.1064567792037300.1090994405486160.1117704914425610.1144697378977900.1171969838787940.1199520313165720.1227346801230120.1255447282054270.1283819714812300.1312462038927520.1341372174222140.1370548021068310.1399987460540590.1429688354569880.1459648546098660.1489865859237680.1520338099423960.1551063053580200.1582038490275480.1613262159887340.1644731794765150.1676445109394790.170839980056468...... 924 row vector 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