gmj.ee.analyzer
Class SpectrumAnalyzer

java.lang.Object
  extended by gmj.ee.analyzer.SpectrumAnalyzer
All Implemented Interfaces:
SampleListener

public class SpectrumAnalyzer
extends Object
implements SampleListener


Field Summary
protected static int F_HEIGHT
           
protected  double f_majorTicIntervalX
           
protected  double f_majorTicIntervalY
           
protected  double f_maxX
           
protected  double f_maxY
           
protected  double f_minorTicIntervalX
           
protected  double f_minorTicIntervalY
           
protected  double f_minX
           
protected  double f_minY
           
protected  JFrame freqFrame
           
protected  Graph2D freqGraph
           
protected  double freqResolution
           
protected static int HEIGHT
           
protected  double sampleInterval
           
protected  int samplesPerBatch
           
protected  int samplesPerSec
           
protected  SCMReader scmReader
           
protected  double t_majorTicIntervalX
           
protected  double t_majorTicIntervalY
           
protected  double t_maxX
           
protected  double t_maxY
           
protected  double t_minorTicIntervalX
           
protected  double t_minorTicIntervalY
           
protected  double t_minX
           
protected  double t_minY
           
protected  JFrame timeFrame
           
protected  Graph2D timeGraph
           
protected static int WIDTH
           
protected static int X_BORDER
           
protected static int Y_BORDER
           
 
Constructor Summary
SpectrumAnalyzer(int samplesPerSec, int samplesPerBatch)
           
 
Method Summary
 void doTest()
           
protected  Series generateSeries()
           
protected  Series getSeries()
           
static void main(String[] args)
           
 void newSamples(int[] samples)
           
protected  Series samplesToSeries(int[] samples)
           
protected  Series timeSeriesToFreqSeries(Series timeSeries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

samplesPerSec

protected int samplesPerSec

samplesPerBatch

protected int samplesPerBatch

sampleInterval

protected double sampleInterval

freqResolution

protected double freqResolution

timeFrame

protected JFrame timeFrame

freqFrame

protected JFrame freqFrame

timeGraph

protected Graph2D timeGraph

freqGraph

protected Graph2D freqGraph

t_minX

protected double t_minX

t_maxX

protected double t_maxX

t_minY

protected double t_minY

t_maxY

protected double t_maxY

t_minorTicIntervalX

protected double t_minorTicIntervalX

t_majorTicIntervalX

protected double t_majorTicIntervalX

t_minorTicIntervalY

protected double t_minorTicIntervalY

t_majorTicIntervalY

protected double t_majorTicIntervalY

f_minX

protected double f_minX

f_maxX

protected double f_maxX

f_minY

protected double f_minY

f_maxY

protected double f_maxY

f_minorTicIntervalX

protected double f_minorTicIntervalX

f_majorTicIntervalX

protected double f_majorTicIntervalX

f_minorTicIntervalY

protected double f_minorTicIntervalY

f_majorTicIntervalY

protected double f_majorTicIntervalY

scmReader

protected SCMReader scmReader

WIDTH

protected static final int WIDTH
See Also:
Constant Field Values

HEIGHT

protected static final int HEIGHT
See Also:
Constant Field Values

F_HEIGHT

protected static final int F_HEIGHT
See Also:
Constant Field Values

X_BORDER

protected static final int X_BORDER
See Also:
Constant Field Values

Y_BORDER

protected static final int Y_BORDER
See Also:
Constant Field Values
Constructor Detail

SpectrumAnalyzer

public SpectrumAnalyzer(int samplesPerSec,
                        int samplesPerBatch)
Method Detail

doTest

public void doTest()

newSamples

public void newSamples(int[] samples)
Specified by:
newSamples in interface SampleListener

samplesToSeries

protected Series samplesToSeries(int[] samples)

timeSeriesToFreqSeries

protected Series timeSeriesToFreqSeries(Series timeSeries)

getSeries

protected Series getSeries()

generateSeries

protected Series generateSeries()

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.