com.webkitchen.brainathlon.gameComponents
Class Spectrum

java.lang.Object
  extended by com.webkitchen.brainathlon.gameComponents.Spectrum

public final class Spectrum
extends java.lang.Object

Contains the EEG data for one channel, broken the four standard frequency bands of Beta, Alpha, Theta and Delta. Spectrums are immutable; their data cannot be changed after they have been created.


Constructor Summary
Spectrum(double beta, double alpha, double theta, double delta)
          Creates a new Spectrum with the given values
 
Method Summary
 double getAlpha()
          Returns the sample from the alpha frequency range
 double getBeta()
          Returns the sample from the beta frequency range
 double getDelta()
          Returns the sample from the delta frequency range
 double getTheta()
          Returns the sample from the theta frequency range
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spectrum

public Spectrum(double beta,
                double alpha,
                double theta,
                double delta)
Creates a new Spectrum with the given values

Parameters:
beta - the sample from the beta frequency range
alpha - the sample from the alpha frequency range
theta - the sample from the theta frequency range
delta - the sample from the delta frequency range
Method Detail

getBeta

public double getBeta()
Returns the sample from the beta frequency range

Returns:
the sample from the beta frequency range

getAlpha

public double getAlpha()
Returns the sample from the alpha frequency range

Returns:
the sample from the alpha frequency range

getTheta

public double getTheta()
Returns the sample from the theta frequency range

Returns:
the sample from the theta frequency range

getDelta

public double getDelta()
Returns the sample from the delta frequency range

Returns:
the sample from the delta frequency range