SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

TriangleWindow

  

multiply an array of samples by a triangular windowing function

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

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

• 

The triangular windowing function wk is defined as follows for a sample with N points.

piecewise1km&comma;km&comma;m<kN&comma;wNk1

• 

where m=N2 for even N, and m=N212 for odd 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[TriangleWindow] command is 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)

TriangleWindowa

0.0003837822542279120.0005751847164780060.001456254871993650.001801717084152440.00009477070126708030.00003989968487113460.0007210649121625550.002930988136129070.0006112889639345010.001037561749804580.003909741973965080.003573440067207890.004743213430074350.004660652472909810.005980038297119560.007199065135254780.002972356787084340.002778745089764120.001122096985194360.0002303014291798150.005426666147657340.005406110827881170.008050763663423430.004550367304263230.01133707475339590.006806322622894960.01144650118436410.004885194024739330.009693834279961570.004753997833454370.0008122804504113680.007348151318546860.01211899392036420.008048535657833590.01154325289887540.01647578448581560.01283417164210600.005857343005721090.01499053328489220.01714720401661660.01885481854288030.01338084074436440.009798005007058110.01565832138982830.01525682413573670.01004322262559150.009239475913973990.01091060171291630.003591416788060780.02182824334597630.01330729586118700.01996037581951910.02057062041693580.01350805661955150.01881130570445650.01067871986392190.008547246311395240.01077346629549620.007215633895748900.003295811084358580.006371680661473340.01400474931649640.02305408659503090.004741696770123610.003435527677087890.005427189682039530.01719867990771900.01597647217602150.03013093757055310.02415154547815670.03200912280490710.005310510266080640.01972815006851190.02278677014932620.01745982752099660.01931905614818470.01442644774653420.03255124506472320.02168771333378890.01536219907908150.03189749799428450.03328397799463530.03887789871817680.01096535800161430.03882141703719740.02525273801755250.02125056105108710.02852265572836330.02092620991862300.03327656045004380.03560138634089220.02296720092109280.01327961069447080.003097153207758780.01419784668705570.02200761859105830.03081463323155000.03104666840942360.04214133593373970.0176491074032812...... 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;

TriangleWindowArray1..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;&apos;container&apos;&equals;c

0.0004887585532746820.0009775171065493650.001466275659824050.001955034213098730.002443792766373410.002932551319648090.003421309872922780.003910068426197460.004398826979472140.004887585532746820.005376344086021510.005865102639296190.006353861192570870.006842619745845550.007331378299120240.007820136852394920.008308895405669600.008797653958944280.009286412512218960.009775171065493650.01026392961876830.01075268817204300.01124144672531770.01173020527859240.01221896383186710.01270772238514170.01319648093841640.01368523949169110.01417399804496580.01466275659824050.01515151515151520.01564027370478980.01612903225806450.01661779081133920.01710654936461390.01759530791788860.01808406647116320.01857282502443790.01906158357771260.01955034213098730.02003910068426200.02052785923753670.02101661779081130.02150537634408600.02199413489736070.02248289345063540.02297165200391010.02346041055718480.02394916911045940.02443792766373410.02492668621700880.02541544477028350.02590420332355820.02639296187683280.02688172043010750.02737047898338220.02785923753665690.02834799608993160.02883675464320630.02932551319648090.02981427174975560.03030303030303030.03079178885630500.03128054740957970.03176930596285430.03225806451612900.03274682306940370.03323558162267840.03372434017595310.03421309872922780.03470185728250240.03519061583577710.03567937438905180.03616813294232650.03665689149560120.03714565004887590.03763440860215050.03812316715542520.03861192570869990.03910068426197460.03958944281524930.04007820136852390.04056695992179860.04105571847507330.04154447702834800.04203323558162270.04252199413489740.04301075268817200.04349951124144670.04398826979472140.04447702834799610.04496578690127080.04545454545454550.04594330400782010.04643206256109480.04692082111436950.04740957966764420.04789833822091890.04838709677419350.0488758553274682...... 924 row vector entries not shown

(3)

u`~`logFFTc&colon;

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

Compatibility

• 

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

• 

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

See Also

SignalProcessing