finance.eod
Class Cr310Midterm
java.lang.Object
finance.eod.Cr310Midterm
public class Cr310Midterm
- extends java.lang.Object
Douglas Lyon, DocJava, Inc.
User: dlyon
Date: Oct 23, 2007
Time: 7:31:23 PM
Your midterm, in two weeks, is to take the prices and volumes from the below
stock and create two spectrograms that can be displayed on the screen using
the PSD, as a function of time. Also play the stock and volume data through the speaker.
Use 1 year of data. You could use 8, 16 or 32 (pick one) sample windows to get
an interesting graph. You need an integral power of two for your
window size to make use of a radix two algorithm.
Graph price and volume for actual data and for
the psd of the price and the psd of the volume. Use any stock you like.
Remember to normalize your data before you try to play it.
Wavetables for the Oscillator should range from -1 to 1 exclusive
i.e. v is such that it ranges from (-1..1).
Use the Oscillator from package sound.
So you can use JavaSound or the uLaw-Codec or /???/
User MathUtils.logBase2(N);
Besure to label your spectrograms and PSD's.
For next week, print out of your source code and the graphs.
Put your name on your work.
Come to class early Demo your code.
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cr310Midterm
public Cr310Midterm()
main
public static void main(java.lang.String[] args)
throws java.text.ParseException,
java.io.IOException,
javax.sound.sampled.LineUnavailableException
- Throws:
java.text.ParseException
java.io.IOException
javax.sound.sampled.LineUnavailableException