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?
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.
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…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.