SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

FlatTopWindow

  

multiply an array of samples by a flat top windowing function

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

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

• 

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

wk=0.215578950.41663158cos2kπn+0.277263158cos4kπn0.083578947cos6kπn+0.006947368cos8kπ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[FlatTopWindow] 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)

FlatTopWindowa

0.0003313763818918070.0002500288115080940.0004268215923883590.0004023036411319600.00001726732987077110.000006203388263603420.00009875473742948140.0003621871355495890.00006944897867860520.0001100324235225540.0003918918031450340.0003420972300123490.0004375345644011580.0004173768714970210.0005232721548876170.0006189480410300150.0002523012773615540.0002338386993097460.00009395480093657540.00001924749374324780.0004539332286887340.0004536964238449130.0006792774748268190.0003867048575149820.0009719645112405090.0005895001476496310.001002756424988590.0004333294459268300.0008714638043866300.0004334932017334260.00007518059443634650.0006907507227602240.001157671400397050.0007816496473081650.001140180875565080.001655737784971300.001312627603400210.0006098345497161290.001589127926461920.001851157658826210.002073220627388270.001498762121513490.001118036012634450.001820394914966450.001807224249603280.001212177940938320.001136311376259930.001367291021621730.0004586069269444520.002840218617098430.001764300053352960.002696427437930360.002831321560925250.001894252435366110.002687483471076700.001554190386486200.001267195202854210.001626961183503210.001109867297108460.0005163004647960030.001016494956307030.002275116674754440.003813451966167590.0007985645475274270.0005890314605549590.0009472200166282600.003055364672757760.002888693257607720.005544286473810810.004522199301491810.006098303490026040.001029343293132780.003890064958161430.004570430670757400.003561846005343710.004008099985650820.003043587475228970.006982705187803850.004729936212970460.003405930332590770.007188446233615210.007623679502556480.009049777908009340.002593690910111770.009329994708879090.006165769067201300.005270744140903130.007185683193371790.005354253340265930.008646304193593570.009392822071296260.006152159440892900.003611172783660930.0008549131166777510.003977690277300670.006257248769634130.008890411000705340.009088385897263400.01251524372354870.00531698254168289...... 924 row vector entries not shown

(2)

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

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

0.0004220180563811460.0004249199142076190.0004297586391244860.0004365376725265210.0004452618295379420.0004559372961835230.0004685716257529010.0004831737343562500.0004997538956730910.0005183237348940380.0005388962218553610.0005614856633678130.0005861076947392050.0006127792704916460.0006415186542743060.0006723454079715250.0007052803800079280.0007403456928506510.0007775647297094650.0008169621204363610.0008585637266248190.0009023966259099850.0009484890954713390.0009968705947385090.001047571747301800.001100624322028580.001156061213387410.001213916420981240.001274225028291230.001337023180633340.001402348062329140.001470237873093740.001540731803641470.001613870010513250.001689693590126820.001768244552053600.001849565791522940.001933701061158900.002020694941951090.002110592813462700.002203440823280160.002299285855706680.002398175499703710.002500158016084960.002605282303966000.002713597866473830.002825154775721480.002940003637051880.003058195552555550.003179782083867810.003304815214250320.003433347309962980.003565431080931250.003701119540715670.003840465965789060.003983523854129110.004130346883131380.004280988866851520.004435503712583170.004593945376778500.004756367820321060.004922824963157640.005093370638297300.005268058545188250.005446942202479810.005630074900179370.005817509651214540.006009299142409920.006205495684889130.006406151163912700.006611316988162760.006821044038486240.007035382616107710.007254382390324330.007478092345695310.007706560728738240.007939834994146250.008177961750538170.008420986705756990.008668954611729750.008921909208903980.009179893170275340.009442948045022590.009711114201764240.009984430771453830.01026293558993150.01054666514014520.01083565449406360.01112993725429360.01142954549542470.01173450970511440.01204485872493810.01236061969101840.01268181797445590.01300847712158140.01334061879404790.01367826270878640.01402142657784240.01437012604811910.0147243746410458...... 924 row vector entries not shown

(3)

u`~`logFFTc:

useplotsindisplayArraylistplotℜu,listplotℑuend use

Compatibility

• 

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

• 

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

See Also

SignalProcessing