discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Discuss-gnuradio] Usrp_spectrum_sense.py doubts


From: Newman, Timothy
Subject: RE: [Discuss-gnuradio] Usrp_spectrum_sense.py doubts
Date: Wed, 12 Nov 2008 11:27:58 -0500

 

Your getting into basic python questions now, maybe check out some python tutorials first.  The “tap” in that for loop just iterates over each value in mywindow.  The += is the assignment by addition operator, it adds the value of “tap*tap” to the value of power.

 

Tim

 

 

From: address@hidden [mailto:address@hidden On Behalf Of Santi Ortega
Sent: Wednesday, November 12, 2008 11:18 AM
To: address@hidden
Subject: [Discuss-gnuradio] Usrp_spectrum_sense.py doubts

 

Can anyone explain me this from usrp_spectrum_sense.py (line 55)?

for tap in mywindow:

power += tap*tap


mywindow is done with window.py but I didn't find where is "tap" and what it means...
Furthermore, Does "+=" means that increase one unit to the result of tap*tap?

Sorry if I am a little useless...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]