SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

CosineWindow

  

multiply an array of samples by a cosine windowing function

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

CosineWindow( 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 CosineWindow( A, alpha ) command multiplies the Array A by the cosine windowing function, with parameter α, and returns the result in an Array having the same length.

• 

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

wk=sinkπ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[CosineWindow] command is thread-safe as of Maple 18.

• 

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

Examples

withSignalProcessing:

N1024:

aGenerateUniformN,1,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)

CosineWindowa,1.23

0.0006365244313477030.001118850114982060.003109558732936380.004110342512140590.0002275869058856960.00009991831726269620.001870840987296780.007841554249245260.001680294785834450.002921871938856340.01125377013156340.01049321423065840.01418629663260760.01417826009157890.01848193422434960.02258084464471590.009453508438901050.008954078030466000.003660767960428650.0007602025477383370.01811360797169510.01823759383533440.02743608481279760.01565825268936750.03937625355268820.02385178175176830.04045818687910990.01741013128309060.03482356445347150.01720970759993200.002962406601748220.02699201062518690.04482733477863480.02997222494316090.04326811310936470.06214987061592330.04871218008177600.02236512379684990.05757285676078580.06623029417956190.07322919637032880.05224957163587670.03846060287415540.06177987317133670.06049730641659710.04001879937292860.03699205602060140.04388671660184900.01451203793513590.08859644527683640.05424760761356460.08171704680071050.08456796480364840.05576075552483990.07796434971105430.04443272451187560.03570122000611800.04517029716754780.03036555678056650.01392027935148390.02700779238723830.05957051200368240.09840046372682570.02030716863930480.01476214081492180.02339622841267370.07438002196169710.06931200596929360.1311243424390110.1054231595338330.1401403565695150.02331860327165440.08687774032042230.1006329859156930.07732377247454940.08579362815558110.06424000877443150.1453356979797330.09708650264357090.06894792107879510.1435257401475830.1501401582982330.1758070716805420.04970637429391040.1764007846801310.1150169734300240.09701368244266260.1305108981043300.09596812830212190.1529467290694550.1639909777659240.1060226442200510.06143274429299930.01435780398739860.06595467146939860.1024427209252850.1437267110727470.1450960519855870.1973317154183120.0828032605490280...... 924 row vector entries not shown

(2)

cArray1..N,'datatype'='float'8,'order'='C_order':

CosineWindowArray1..N,'fill'=1,'datatype'='float'8,'order'='C_order',0.72,'container'=c

0.01550713076167180.02554298064616860.03420226189612380.04207336856573890.04940581630982570.05633563326606820.06294750080228490.06929873958185300.07543046976742570.08137347919572790.08715159034035160.09278372350946030.09828522795945480.1036687770913990.1089449914374380.1141228848343240.1192101918717730.1242136133250650.1291390035225890.1339915157131380.1387757164728550.1434956769029210.1481550461649250.1527571113919480.1573048469607260.1618009553630360.1662479013757970.1706479408354780.1750031450305860.1793154215072070.1835865319167380.1878181074078600.1920116619666510.1961686040320490.2002902466536880.2043778164112880.2084324612767380.2124552575692750.2164472161294430.2204092878172790.2243423684237150.2282473030705270.2321248901630020.2359758849500700.2398010027389190.2436009218045160.2473762860289860.2511277073011200.2548557677023390.2585610215020780.2622439969826750.2659051981113670.2695451060749050.2731641806904340.2767628617047160.2803415699924000.2839007086628340.2874406640838770.2909618068302630.2944644925632410.2979490628475460.3014158459111030.3048651573523440.3082973007995130.3117125685259270.3151112420247440.3184935925465010.3218598816023290.3252103614355150.3285452754638370.3318648586948600.3351693381162100.3384589330626670.3417338555617260.3449943106591940.3482404967261980.3514726057489140.3546908236021910.3578953303081610.3610863002808380.3642639025576330.3674283010186320.3705796545944250.3737181174632230.3768438392379190.3799569651437350.3830576361870200.3861459893157400.3892221575721630.3922862702381910.3953384529737830.3983788279488570.4014075139690580.4044246265957260.4074302782604050.4104245783741830.4134076334321540.4163795471132690.4193404203758170.422290351548781...... 924 row vector entries not shown

(3)

u`~`logFFTc:

useplotsindisplayArraylistplotℜu,listplotℑuend use

Compatibility

• 

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

• 

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

See Also

SignalProcessing