SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

BartlettHannWindow

  

multiply an array of samples by a Bartlett-Hann windowing function

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

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

• 

The Bartlett-Hann windowing function wk is defined as follows for a sample with N points.

wk=0.620.482kN2N0.38cos2kπ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[BartlettHannWindow] 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)

BartlettHannWindowa

0.0003736881443571430.0005684745581171350.001460578378838010.001833432908235020.00009782574819368870.00004176969951378230.0007654089340154360.003154112799049220.0006667646678808320.001146895294681340.004378895956889800.004054474456013240.005451034489342740.005424248874021800.007047151453832160.008588835079404590.003589557939850190.003396295554171740.001387842695098660.0002882022189957090.006870111076364190.006922867468265580.01042678210863330.005959568096531640.01501303904525290.009112231013277940.01549087566635010.006682262998858060.01340060604500390.006640862843573710.001146459664374410.01047778871384950.01745618454946390.01170965725481940.01696111068809580.02444702436842380.01922903324859450.008860467652506520.02289269386924570.02643353010531110.02933763991745760.02101294042783120.01552751762638580.02503983894730860.02461694104613280.01634891557584330.01517302013540740.01807364535697750.006000664280869130.03678353456096370.02261470232069620.03420597327127570.03554504904004190.02353368413002470.03304065468801780.01890816476669240.01525545591192760.01938170548806900.01308331549318550.006022573401945610.01173330533377190.02598716032924640.04310418854833560.008932329921102280.006520120282737730.01037625115679860.03312351571765690.03099352175660310.05887415190923960.04752832715461550.06343820837319320.01059881259790320.03964840932709370.04611217071739380.03557471230625140.03963068481289110.02979375078895310.06767521657402370.04538878479016790.03236217284375010.06763436657784690.07103131640839100.08350237416972120.02370162343244190.08444306640305590.05527347452603770.04680292204604780.06320706736154090.04665717585477550.07464449755878550.08034101549725920.05213979006021770.03032615412285240.007114521076190170.03280475986077300.05114456071892120.07202383668094510.07298071720527750.09962229019464910.0419572953041109...... 924 row vector entries not shown

(2)

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

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

0.0004759033926134420.0009661133011326100.001470628917603910.001989448895472260.002522571349631300.003069993856494420.003631713454086300.004207726642154020.004798029382299230.005402617098130000.006021484675433010.006654626462366480.007302036269672410.007963707370910070.008639632502708990.009329803865042670.01003421312152180.01075285139970870.01148570929145090.01223277685323560.01299404360656380.01376949853834500.01455913010131200.01536292621445530.01618087426347820.01701296110127130.01785917304840820.01871949589365970.01959391489452970.02048241477780950.02138497974015340.02230159344867310.02323223904155310.02417689912868540.02513555579232420.02610819058776050.02709478454401660.02809531816456030.02910977142803870.03013812378903230.03118035417882870.03223644100621510.03330636215829210.03439009500130570.03548761638149920.03659890262598560.03772392954363850.03886267242600270.04001510604822510.04118120467000360.04236094203655680.04355429137961210.04476122541841380.04598171636075000.04721573590399940.04846325523619580.04972424503711430.05099867547937400.05228651622956160.05358773644937340.05490230479677620.05623018942718700.05757135799467280.05892577765316760.06029341505770910.06167423636569490.06306820723815540.06447529284104790.06589545784656730.06732866643447630.06877488229345420.07023406862246370.07170618813213710.07319120304617930.07468907510279060.07619976555610740.07772323517766040.07925944425785200.08080835260745110.08236991955910640.08394410396887740.08553086421778320.08713015821336990.08874194339129490.09036617671693010.09200281468698100.09365181333112590.09531312821367030.09698671443522030.09867252663437330.1003705189894250.1020806452200960.1038028585892730.1055371119047680.1072833575210960.1090415473412710.1108116328186100.1125935649585700.1143872943205840.116192771019929...... 924 row vector entries not shown

(3)

u`~`logFFTc:

useplotsindisplayArraylistplotℜu,listplotℑuend use

Compatibility

• 

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

• 

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

See Also

SignalProcessing