1) For your study construct a discrete time distribution. array y(t) using the function y(t) =...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) For your study construct a discrete time distribution. array y(t) using the function y(t) = sin( 2.T f t) with period T = 5 samples. For the discretization use a range of 1000 time samples. Make a plot of function y(t) versus time t. 2) Write your own discrete Fourier transform user function using the matrix-vector multiplication method that inputs the discretized time distribution array y(t) and outputs the discretized frequency distribution array Y(f). Make a plot of Y(f) versus f for frequencies of 0 to 0.5 cycles per sample (i.e., the Nyquist limit). You can use the scipy function fftfreq() to obtain the frequency scale. 3) Use the scipy function fft() to compute the frequency distribution Y(f) from the time distribution y(t). Check you results for Y(f) from your user DFT code and the scipy FFT code agree. 4) Use the python command line module %timeit to compare the execution time for your DFT() code and scipy's FFT() code. 1) For your study construct a discrete time distribution. array y(t) using the function y(t) = sin( 2.T f t) with period T = 5 samples. For the discretization use a range of 1000 time samples. Make a plot of function y(t) versus time t. 2) Write your own discrete Fourier transform user function using the matrix-vector multiplication method that inputs the discretized time distribution array y(t) and outputs the discretized frequency distribution array Y(f). Make a plot of Y(f) versus f for frequencies of 0 to 0.5 cycles per sample (i.e., the Nyquist limit). You can use the scipy function fftfreq() to obtain the frequency scale. 3) Use the scipy function fft() to compute the frequency distribution Y(f) from the time distribution y(t). Check you results for Y(f) from your user DFT code and the scipy FFT code agree. 4) Use the python command line module %timeit to compare the execution time for your DFT() code and scipy's FFT() code.
Expert Answer:
Answer rating: 100% (QA)
Python Code python import numpy as np import matplotlibpyplot as plt from scipyfft import fft fftfre... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
What is POSITIVE PSYCHOLOGY? What are the advantages of using positive psychology? Describe two examples of using positive psychology in real life .?
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Write inequalities to describe the set. The slab bounded by the planes z = 0 and z = 1
-
Find the momentum of a proton in MeV/c units assuming its total energy is twice its rest energy.
-
The phase diagram of sulfur is shown here. (a) How many triple points are there? (b) Monoclinic and rhombic are two allotropes of sulfur. Which is more stable under atmospheric conditions? (c)...
-
What type of mounting for an accelerometer yields the highest frequency range transmissibility?
-
A man is riding on a flatcar traveling at a constant speed of 9.10 m/s (Fig. 3.54). He wishes to throw a ball through a stationary hoop 4.90 m above the height of his hands in such a manner that the...
-
Direct labor costs Family Model Deluxe Model $72,900 $145,800 Machine hours 2,000 2,000 Setup hours 200 800 Packaging hours 50 75 The estimated overhead of $437,400 is allocated as follows: machining...
-
Alan and Angel Young are both 36 years old. Mr. Young recently accepted a new job making $93,000 a year and Mrs. Young is currently unemployed. The Youngs have two children (ages 4 and 2), a dog, and...
-
Discuss the various options, methods and practices that could be used for recording and reporting deductions, benefits and depreciation What are the key requirements which should be included in...
-
Task details: You are to write a Reflective Journal on: 1. how the readings, class activities, discussions observations and lectures have changed how you communicate at work or life 2. the things...
-
Northouse, In Chapter 16, the author discusses ' Culture and Leadership' . What are some of the Leadership changes, in the author's opinions, that are necessary in order to meet the need of this new...
-
You are preparing to leave home for several days. You cannot bring along your pets and your houseplants, and they will both need special care because they are alive. How is a living organism...
-
Both Personal Selling and Advertising are among the oldest and most effective forms of promotion. Using three ( 3 ) criteria, compare advertising and personal selling as marketing communication...
-
Write a persuasive messages within organizations demonstrating your knowledge of interpersonal persuasion at work. You are working for the small accounting firm, CPA Plus, and your boss, Bradford...
-
Pluto, inc. is trying to decide whether to lease or buy some new equipment. The equipment costs $38,000, has a 3-year life and is worthless after the 3 years. The after-tax discount rate is percent....
-
Suppose the S&P 500 futures price is 1000, = 30%, r = 5%, = 5%, T = 1, and n = 3. a. What are the prices of European calls and puts for K = $1000? Why do you find the prices to be equal? b. What...
-
Tom has a successful business with $100,000 of income in 2012. He purchases one new asset in 2012, a new machine which is 7-year MACRS property and costs $25,000. If you are Tom's tax advisor, how...
-
Indicate whether each of the items listed below would be included (I) in or excluded (E) from gross income for the 2012 tax year. ________a. Welfare payments ________b. Commissions ________c. Hobby...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
Explain the building blocks of accounting: ethics, principles, and assumptions.
-
On May 1, 2025, Park Flying School Ltd., a company that provides flying lessons, was started with an investment of 45,000 cash in the business. Following are the assets and liabilities of the company...
-
The historical cost basis results in: a. initially recording assets at cost and adjusting when the current value changes. b. keeping activities of an entity separate and distinct from its owner. c....
Study smarter with the SolutionInn App