SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

BlackmanHarrisWindow

  

multiply an array of samples by a Blackman-Harris windowing function

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

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

• 

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

0.358750.48829cos2kπN+0.14128cos4kπN0.1168cos6kπ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[BlackmanHarrisWindow] 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)

BlackmanHarrisWindowa

0.08248065243074000.06177560397754300.1041780853734940.09655066029795150.004056472828114140.001420448354268560.02195293463436760.07787443085752970.01439375322168320.02191425926495740.07479173365802220.06240653056211110.07612381425222450.06912174072209900.08234743440127030.09242078816360880.03570052084663910.03132119900841700.01190164362330620.002304043026081640.05131622455247780.04841058649599390.06838198035796080.03671434981408800.08700418162713250.04973971693973160.07973712499242800.03246840357704190.06151964198546990.02882846540245920.004709544962424960.04075596540768500.06433031450375780.04090402524904560.05618384353009860.07681902433915670.05733343591931800.02507320164735380.06149235633747340.06740515108993550.07102216757231130.04829234553562740.03387528061059490.05184932686776640.04837177610980840.03047773560175620.02682650612007140.03029499494749280.009531543959253110.05533903351016350.03220523937937740.04607915411103940.04526072920039660.02830128311221120.03749127416734910.02022282210766740.01536113647615770.01834995987567840.01163009361041450.005018545374387870.009149064025415480.01892419900309560.02924970208719550.005634231042580370.003812263732110820.005606040581690200.01647721202450490.01413733678684920.02450839987003690.01795740540930860.02161362519885980.003231210690030060.01071536057144290.01092110567510820.007276964498892230.006870611401757620.004267396505551970.007722504802238520.003902021581760460.001901883041934900.002196578862817600.0005016610212064680.001461787192755670.0009778624080240930.005422844422461250.004776603364792340.005049031883787280.008130062918271240.006937111120397810.01254557328406660.01500867255845270.01068481127730130.006745534351214030.001702865660305070.008388097783626480.01388527349509950.02065259316502090.02200231684185570.03145173212778120.0138227051788366...... 924 row vector entries not shown

(2)

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

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

0.1050416581566590.1049866380755550.1048949561014010.1047666394685740.1046017262908980.1044002655473550.1041623170637070.1038879514900620.1035772502743700.1032303056318740.1028472205105150.1024281085523140.1019730940507350.1014823119040580.1009559075647550.1003940369849210.09979686655774080.09916457305505200.09849734356099210.09779537540177640.09705887607162270.09628806315484970.09548316424418010.09464441685527460.09377206833752960.09286637578116980.09192760592066940.09095603503453640.08995194884149620.08891564239311160.08784741996287860.08674759493183610.08561648967073340.08445443541879520.08326177215912920.08203884849082070.08078602149776060.07950365661425380.07819212748745560.07685181583668750.07548311130968090.07408641133580210.07266212097631090.07121065277170630.06973242658621540.06822786944948010.06669741539550040.06514150529889050.06356058670850860.06195511367851880.06032554659694700.05867235201179270.05699600245475860.05529697626266280.05357575739659740.05183283525889810.05006870450799320.04828386487119660.04647882095551280.04465408205652410.04281016196542660.04094757877428720.03906685467958970.03716851578414330.03525309189742360.03332111633441940.03137312571305790.02940965975028080.02743126105684720.02543847493093580.02343184915062250.02141193376530750.01937928088616950.01733444447572090.01527798013654190.01321044489927040.01113239700992330.009044395716628680.006947001055844250.004840773638141570.002726274433633780.0006040645571239360.001525294946946120.003661243319669480.005803220302890580.007950666354386360.01010302286293420.01225973236318650.01442023875027470.01658398749406340.01875042585297720.02091900308731930.02308917067200790.02526038250864810.02743209513686440.02960376794481390.03177486337880550.03394484715194560.03611318845173380.0382793601465342...... 924 row vector entries not shown

(3)

u`~`logFFTc:

useplotsindisplayArraylistplotℜu,listplotℑuend use

Compatibility

• 

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

• 

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

See Also

SignalProcessing