Question: Your task is to write a function sig _ power according to the following specifications: Your function takes as it's input a sampled signal named
Your task is to write a function sigpower according to the following specifications:
Your function takes as it's input a sampled signal named
this signal is passed as a NumPy array
the signal may be complexvalued, eg a complex exponential signal
your function must compute and return the average power of the signal.
Note that power is always realvalued, even if is complex
The power of the discretetime signal with samples dots, is computed as
Your function must handle the special case that ontains no samples, ie In that case, your function must return the special Python value None.
don't return the string 'None' ; the constant None is a special value in Python
Your function must include a proper doc string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
