com.webkitchen.eeg.acquisition
Class RawSample

java.lang.Object
  extended by com.webkitchen.eeg.acquisition.RawSample

public final class RawSample
extends java.lang.Object

Contains the raw EEG data sample(s) for a specific channel or set of channels. RawSamples are immutable; their data cannot be changed after they have been created.

See Also:
IRawSampleGenerator, IRawSampleListener

Method Summary
 int[] getChannelNumbers()
          Returns an array of the channel numbers associated with the samples.
 int getPacketNumber()
          Returns the packet sequence number for the sample
 int[] getSamples()
          Returns and array of the raw samples associated with the channels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPacketNumber

public int getPacketNumber()
Returns the packet sequence number for the sample

Returns:
the packet sequence number

getChannelNumbers

public int[] getChannelNumbers()
Returns an array of the channel numbers associated with the samples. They are associated by array position - samples[0] comes from channels[0].

Returns:
the channel numbers

getSamples

public int[] getSamples()
Returns and array of the raw samples associated with the channels. They are associated by array position - samples[0] comes from channels[0].

Returns:
the raw samples for the channels